scripts/docker-madone/nginx/site-confs/default

30 lines
889 B
Plaintext
Raw Normal View History

2019-03-16 20:59:25 -04:00
## Based on version below; but heavily modified for LUUG
## Version 2018/09/12 - Changelog: https://github.com/linuxserver/docker-letsencrypt/commits/master/root/defaults/default
# This is the main file that will be pe present no matter what
# Individual sites are specified in /config/nginx/sites/*.enabled
2019-09-01 21:37:44 -04:00
# Redirect unknown HTTP traffic to https://seaturtle.pw
2019-03-16 20:59:25 -04:00
server {
2019-03-16 21:53:28 -04:00
listen 80 default_server;
listen [::]:80 default_server;
2019-03-16 20:59:25 -04:00
server_name _;
2019-09-01 21:37:44 -04:00
return 301 https://seaturtle.pw;
}
# Redirect unknown HTTPS traffic to https://seaturtle.pw
# If we don't have a cert for the site the client get an error but that's fine
server {
listen 443 default_server;
listen [::]:443 default_server;
server_name _;
2019-03-16 20:59:25 -04:00
2019-09-01 21:37:44 -04:00
# ssl conf
include /config/nginx/ssl.conf;
return 301 https://seaturtle.pw;
2019-03-16 20:59:25 -04:00
}
# Enabled sites are included in /config/nginx/nginx.conf