소스 검색

jakies drobne zmiany

master
Lukasz Jarosz 5 년 전
부모
커밋
02fe87463c
2개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. 4
    1
      README.md
  2. 1
    1
      files/usr/bin/ssl-auto-renew

+ 4
- 1
README.md 파일 보기

@@ -11,4 +11,7 @@ MariaDB is automatically bootstrapped into /data/mariadb. To add additional my.c
11 11
 
12 12
 ## SSL
13 13
 Image supports using SSL with nginx which acts as reverse proxy for Gitea. It has embedded Lets Encrypt support with auto renewal. If you don't have account.key script will generate it for you.
14
-Required files for cert are /data/ssl/cert.crt /data/ssl/cert.key . 
14
+Required files for cert are /data/ssl/cert.crt /data/ssl/cert.key .
15
+
16
+## Gitea
17
+There are a few tweaks to app.ini template. Most of them are around disabling unecessary logs and features that may lead to potentional exploit of installation.  

+ 1
- 1
files/usr/bin/ssl-auto-renew 파일 보기

@@ -5,6 +5,6 @@ if [ -n $ENABLE_SSL ]; then
5 5
     [[ ! -f $file ]] && exit
6 6
   done
7 7
 
8
-  python3 -m acme_tiny --account-key /data/ssl/account.key --csr /data/ssl/domain.csr --acme-dir /run/nginx/challenges > /data/ssl/cert.crt
8
+  python3 -m acme_tiny --account-key /data/ssl/account.key --csr /data/ssl/domain.csr --acme-dir /run/nginx/challenges > /tmp/cert.crt && mv /tmp/cert.crt /data/ssl/cert.crt
9 9
   s6-svc -du /etc/s6/nginx
10 10
 fi

Loading…
취소
저장