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,8 +12,8 @@ fathom_subdomain: 'stats'
12 12
 fathom_internal_port: '9000'
13 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 18
 commento_subdomain: 'comments'
19 19
 commento_internal_port: '9100'

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

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

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

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

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

@@ -85,7 +85,7 @@
85 85
 - name: Create gitea admin user account
86 86
   become: true
87 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 89
   args:
90 90
     chdir: /data/gitea
91 91
   ignore_errors: True

Loading…
Cancel
Save