add default conf file

This commit is contained in:
Simon Larsen 2023-07-17 19:54:44 +01:00
parent a04eb341e1
commit a04416e7e7
No known key found for this signature in database
GPG Key ID: AB45983AA9C81CDE
2 changed files with 1 additions and 5 deletions

1
.gitignore vendored
View File

@ -73,7 +73,6 @@ logs.txt
*/Cert.crt
*/Key.key
Nginx/default.conf
Certs/StatusPageCerts/*.crt
Certs/StatusPageCerts/*.key

View File

@ -159,10 +159,7 @@ server {
listen 443 ssl; # Port HTTPS
listen 80;
server_name localhost;
{{ if ne .Env.DOMAIN "localhost" }}
server_name {{ .Env.DOMAIN }};
{{ end }}
server_name localhost $DOMAIN; #All domains
ssl_certificate /etc/nginx/certs/ServerCerts/Cert.crt;
ssl_certificate_key /etc/nginx/certs/ServerCerts/Key.key;