ssl?
This commit is contained in:
parent
0a194d1d31
commit
bbfe69e3af
2 changed files with 16 additions and 2 deletions
|
@ -1,6 +1,20 @@
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
listen 443 ssl;
|
|
||||||
server_name "git.faulty.nl";
|
server_name "git.faulty.nl";
|
||||||
return 301 https://git.ixvd.net$request_uri;
|
return 301 https://git.ixvd.net$request_uri;
|
||||||
}
|
}
|
||||||
|
server {
|
||||||
|
server_name git.faulty.nl;
|
||||||
|
access_log /var/log/nginx/access.log vhost;
|
||||||
|
listen 443 ssl http2 ;
|
||||||
|
ssl_session_timeout 5m;
|
||||||
|
ssl_session_cache shared:SSL:50m;
|
||||||
|
ssl_session_tickets off;
|
||||||
|
ssl_certificate /etc/nginx/certs/git.faulty.nl.crt;
|
||||||
|
ssl_certificate_key /etc/nginx/certs/git.faulty.nl.key;
|
||||||
|
ssl_dhparam /etc/nginx/certs/git.faulty.nl.dhparam.pem;
|
||||||
|
ssl_stapling on;
|
||||||
|
ssl_stapling_verify on;
|
||||||
|
ssl_trusted_certificate /etc/nginx/certs/git.faulty.nl.chain.pem;
|
||||||
|
return 301 https://git.ixvd.net$request_uri;
|
||||||
|
}
|
|
@ -35,7 +35,7 @@ services:
|
||||||
nginx['listen_https'] = false
|
nginx['listen_https'] = false
|
||||||
# temp ssh port
|
# temp ssh port
|
||||||
VIRTUAL_HOST: git.ixvd.net
|
VIRTUAL_HOST: git.ixvd.net
|
||||||
LETSENCRYPT_HOST: git.ixvd.net
|
LETSENCRYPT_HOST: git.ixvd.net,git.faulty.nl
|
||||||
ports:
|
ports:
|
||||||
- '22:22'
|
- '22:22'
|
||||||
volumes:
|
volumes:
|
||||||
|
|
Reference in a new issue