Nginx-Configurations/http.d/internal.shad.moe

36 lines
No EOL
1.1 KiB
Text

# Include a common header (Upgrade Websockets, Add Upstreams, Upgrade HTTP to HTTPS)
include snippets/global/common-boilerplate.conf;
server {
server_name internal.shad.moe www.internal.shad.moe;
ssl_certificate /etc/letsencrypt/live/internal.shad.moe/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/internal.shad.moe/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/internal.shad.moe/fullchain.pem;
include snippets/global/common-ssl.conf;
include snippets/global/common-headers.conf;
root /var/www/internal-page-wall;
location / {
index index.htm index.html;
}
include snippets/global/errors/http-cat-error-pages.conf;
}
server {
server_name *.internal.shad.moe;
ssl_certificate /etc/letsencrypt/live/internal.shad.moe/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/internal.shad.moe/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/internal.shad.moe/fullchain.pem;
include snippets/global/common-ssl.conf;
return 302 https://internal.shad.moe;
}