From 93b96fb8e08487e83e000eba46e16de63049b257 Mon Sep 17 00:00:00 2001 From: William Petit Date: Sun, 29 Sep 2019 10:08:53 +0200 Subject: [PATCH 1/4] =?UTF-8?q?Correction=20g=C3=A9n=C3=A9ration=20mot=20d?= =?UTF-8?q?e=20passe=20par=20eole-db?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tmpl/gitea-db.yml | 5 ++--- tmpl/gitea.conf | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/tmpl/gitea-db.yml b/tmpl/gitea-db.yml index 425fbc1..423a9c3 100644 --- a/tmpl/gitea-db.yml +++ b/tmpl/gitea-db.yml @@ -34,8 +34,7 @@ createscript: "/usr/share/eole/db/gitea/gen/00-create-gitea-db.sql" %set cnt_prefix = %%getVar('container_path_reseau', '') pwd_files: - {file: '%%cnt_prefix/etc/gitea/conf/app.ini', - pattern: 'PASSWD = ', - end_pattern: '', + pattern: 'PASSWD = `', + end_pattern: '`', owner: 'root:gitservice', mod: '660' } - diff --git a/tmpl/gitea.conf b/tmpl/gitea.conf index 3a86cc4..a0b931f 100644 --- a/tmpl/gitea.conf +++ b/tmpl/gitea.conf @@ -70,7 +70,7 @@ HOST = %%{gitea_dbserver}:%%{gitea_dbport} %end if NAME = gitea USER = gitea -PASSWD = gitea1234 +PASSWD = `gitea1234` ; For "postgres" only, either "disable", "require" or "verify-full" SSL_MODE = disable ; For "sqlite3" only From 0839f68e186d171a52658cb722186bb65c565a9a Mon Sep 17 00:00:00 2001 From: William Petit Date: Mon, 30 Sep 2019 14:46:15 +0200 Subject: [PATCH 2/4] =?UTF-8?q?Utilisation=20du=20serveur=20SSH=20int?= =?UTF-8?q?=C3=A9gr=C3=A9=20=C3=A0=20Gitea?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dicos/50_gitea.xml | 2 +- tmpl/gitea.conf | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/dicos/50_gitea.xml b/dicos/50_gitea.xml index bf03e4a..01e59b6 100644 --- a/dicos/50_gitea.xml +++ b/dicos/50_gitea.xml @@ -22,7 +22,7 @@ gitea_http_port - sshd + gitea diff --git a/tmpl/gitea.conf b/tmpl/gitea.conf index a0b931f..60b2401 100644 --- a/tmpl/gitea.conf +++ b/tmpl/gitea.conf @@ -30,6 +30,7 @@ HTTP_ADDR = HTTP_PORT = %%gitea_http_port ; Disable SSH feature when not available DISABLE_SSH = false +START_SSH_SERVER = true SSH_PORT = %%gitea_ssh_port ; Disable CDN even in "prod" mode OFFLINE_MODE = false From d8bce9cd5151065e0a42562ccfdd2bc4f9d14956 Mon Sep 17 00:00:00 2001 From: William Petit Date: Mon, 30 Sep 2019 14:46:51 +0200 Subject: [PATCH 3/4] Suppression commentaires inutiles --- dicos/50_gitea.xml | 3 --- 1 file changed, 3 deletions(-) diff --git a/dicos/50_gitea.xml b/dicos/50_gitea.xml index 01e59b6..e75482b 100644 --- a/dicos/50_gitea.xml +++ b/dicos/50_gitea.xml @@ -1,7 +1,6 @@ - @@ -14,9 +13,7 @@ apt-transport-https git-core - - forge gitea_http_port From aff3f9cee7686615b607ed6ed400570fc1d10f67 Mon Sep 17 00:00:00 2001 From: William Petit Date: Mon, 30 Sep 2019 16:50:18 +0200 Subject: [PATCH 4/4] =?UTF-8?q?Ajout=20r=C3=A8gle=20ouverture=20du=20port?= =?UTF-8?q?=20SSH?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dicos/50_gitea.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dicos/50_gitea.xml b/dicos/50_gitea.xml index e75482b..d534ba7 100644 --- a/dicos/50_gitea.xml +++ b/dicos/50_gitea.xml @@ -19,7 +19,7 @@ gitea_http_port - gitea + gitea_ssh_port