Browse Source

update commento and gitea to current version

Thomas Buck 3 years ago
parent
commit
c2f9a9da97

+ 2
- 2
roles/blog/defaults/main.yml View File

12
 fathom_internal_port: '9000'
12
 fathom_internal_port: '9000'
13
 fathom_secret: "{{ lookup('password', secret + '/' + 'fathom_secret length=32') }}"
13
 fathom_secret: "{{ lookup('password', secret + '/' + 'fathom_secret length=32') }}"
14
 
14
 
15
-commento_version: '1.6.2'
16
-commento_release: "https://commento-release.s3.amazonaws.com/commento-linux-amd64-v{{ commento_version }}.tar.gz"
15
+commento_version: '1.8.0'
16
+commento_release: "https://dl.commento.io/release/commento-v{{ commento_version }}-linux-glibc-amd64.tar.gz"
17
 
17
 
18
 commento_subdomain: 'comments'
18
 commento_subdomain: 'comments'
19
 commento_internal_port: '9100'
19
 commento_internal_port: '9100'

+ 1
- 0
roles/blog/templates/etc_systemd_system_commento.j2 View File

10
 WorkingDirectory=/home/{{ main_user_name }}/commento
10
 WorkingDirectory=/home/{{ main_user_name }}/commento
11
 ExecStart=/home/{{ main_user_name }}/commento/commento
11
 ExecStart=/home/{{ main_user_name }}/commento/commento
12
 Environment=COMMENTO_ORIGIN=https://{{ commento_subdomain }}.{{ domain }}
12
 Environment=COMMENTO_ORIGIN=https://{{ commento_subdomain }}.{{ domain }}
13
+Environment=COMMENTO_CDN_PREFIX=https://{{ commento_subdomain }}.{{ domain }}
13
 Environment=COMMENTO_PORT={{ commento_internal_port }}
14
 Environment=COMMENTO_PORT={{ commento_internal_port }}
14
 Environment=COMMENTO_POSTGRES=postgres://{{ commento_db_username }}:{{ commento_db_password }}@localhost:5432/{{ commento_db_database }}?sslmode=disable
15
 Environment=COMMENTO_POSTGRES=postgres://{{ commento_db_username }}:{{ commento_db_password }}@localhost:5432/{{ commento_db_database }}?sslmode=disable
15
 Environment=COMMENTO_STATIC=/home/{{ main_user_name }}/commento
16
 Environment=COMMENTO_STATIC=/home/{{ main_user_name }}/commento

+ 1
- 1
roles/gitea/defaults/main.yml View File

1
 gitea_subdomain: "git"
1
 gitea_subdomain: "git"
2
 gitea_domain: "{{ gitea_subdomain }}.{{ domain }}"
2
 gitea_domain: "{{ gitea_subdomain }}.{{ domain }}"
3
 
3
 
4
-gitea_version: "1.7.3"
4
+gitea_version: "1.14.2"
5
 gitea_release: "https://github.com/go-gitea/gitea/releases/download/v{{ gitea_version }}/gitea-{{ gitea_version }}-linux-amd64"
5
 gitea_release: "https://github.com/go-gitea/gitea/releases/download/v{{ gitea_version }}/gitea-{{ gitea_version }}-linux-amd64"
6
 
6
 
7
 gitea_admin_username: "{{ main_user_name }}"
7
 gitea_admin_username: "{{ main_user_name }}"

+ 1
- 1
roles/gitea/tasks/gitea.yml View File

85
 - name: Create gitea admin user account
85
 - name: Create gitea admin user account
86
   become: true
86
   become: true
87
   become_user: git
87
   become_user: git
88
-  shell: /usr/local/bin/gitea admin create-user --admin --config /etc/gitea/app.ini --name {{ gitea_admin_username }} --password {{ gitea_admin_password }} --email {{ admin_email }}
88
+  shell: /usr/local/bin/gitea admin user create --admin --config /etc/gitea/app.ini --username {{ gitea_admin_username }} --password {{ gitea_admin_password }} --email {{ admin_email }}
89
   args:
89
   args:
90
     chdir: /data/gitea
90
     chdir: /data/gitea
91
   ignore_errors: True
91
   ignore_errors: True

Loading…
Cancel
Save