網頁

2018年7月24日 星期二

[筆記] Synology NAS Docker Gitlab SSL 參考

https://chpresearch.wordpress.com/2016/10/04/synology-gitlab-setup-ssl-over-lets-encrypt/
https://steemit.com/security/@the-tech-guy/let-s-encrypt-ssl-certificate-for-gitlab-with-docker-on-synology
https://github.com/sameersbn/docker-gitlab/tree/v8.0.3#ssl
https://blog.csdn.net/yinxiulong/article/details/79703990
https://gist.github.com/mattcarlotta/4d9fdb90376c5d13db2c1b69a2d557a6

/usr/syno/etc/certificate/system/default
-r-------- 1 root root 2162 Jul 17 11:20 cert.pem
-r-------- 1 root root 1646 Jul 17 11:20 chain.pem
-r-------- 1 root root 3810 Jul 17 11:20 fullchain.pem
-r-------- 1 root root 1703 Jul 17 11:20 privkey.pem

/usr/syno/etc/ssl
-r--------  1 root root  424 Jan  4  2018 dh2048.pem

#openssl dhparam -dsaparam -out dhparam.pem 2048
#openssl req -new -key gitlab.key -out gitlab.csr
#openssl x509 -req -days 3650 -in gitlab.csr -signkey gitlab.key -out gitlab.crt

privkey.pem → gitlab.key
cert.pem → gitlab.crt
dh2048.pem → dhparam.pem

/volume1/docker/gitlab/gitlab/certs
-rwxr-xr-x 1 root root  424 Jul 17 12:19 dhparam.pem
-rwxr-xr-x 1 root root 2162 Jul 17 12:43 gitlab.crt
-rw-r--r-- 1 root root 1009 Jul 17 12:42 gitlab.csr
-rwxr-xr-x 1 root root 1703 Jul 17 12:43 gitlab.key

GITLAB_HTTPS  true
SSL_SELF_SIGNED  true