nginx SSL
This commit is contained in:
parent
e053515997
commit
cde2458404
|
@ -6,4 +6,5 @@ services:
|
|||
context: ./services/nginx
|
||||
ports:
|
||||
- 80:80
|
||||
- 443:443
|
||||
links: []
|
||||
|
|
|
@ -13,7 +13,16 @@ http {
|
|||
include /etc/nginx/mime.types;
|
||||
|
||||
server {
|
||||
listen {{port}};
|
||||
listen 80 default_server;
|
||||
listen [::]:80 default_server;
|
||||
server_name _;
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl;
|
||||
ssl_certificate /config/nginx/cert.pem;
|
||||
ssl_certificate_key /config/nginx/key.pem;
|
||||
server_name {{host}};
|
||||
autoindex off;
|
||||
|
||||
|
|
Loading…
Reference in New Issue