30 lines
889 B
Plaintext
30 lines
889 B
Plaintext
|
## 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
|
||
|
|
||
|
# Redirect unknown HTTP traffic to https://seaturtle.pw
|
||
|
server {
|
||
|
listen 80 default_server;
|
||
|
listen [::]:80 default_server;
|
||
|
server_name _;
|
||
|
|
||
|
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 _;
|
||
|
|
||
|
# ssl conf
|
||
|
include /config/nginx/ssl.conf;
|
||
|
|
||
|
return 301 https://seaturtle.pw;
|
||
|
}
|
||
|
|
||
|
# Enabled sites are included in /config/nginx/nginx.conf
|