diff --git a/nginx/sites-available/logs.spanix.xyz.conf b/nginx/sites-available/logs.spanix.xyz.conf index 191b1c5..309215a 100755 --- a/nginx/sites-available/logs.spanix.xyz.conf +++ b/nginx/sites-available/logs.spanix.xyz.conf @@ -1,7 +1,7 @@ server { access_log /var/log/nginx/logs.spanix.access.log combined; - server_name logs.spanix.xyz; + server_name logs.spanix.team; include configs/general.conf; include configs/securityheaders.conf; @@ -11,22 +11,22 @@ server { } listen 443 ssl http2; # managed by Certbot - ssl_certificate /etc/letsencrypt/live/logs.spanix.xyz/fullchain.pem; # managed by Certbot - ssl_certificate_key /etc/letsencrypt/live/logs.spanix.xyz/privkey.pem; # managed by Certbot + ssl_certificate /etc/letsencrypt/live/logs.spanix.team/fullchain.pem; # managed by Certbot + ssl_certificate_key /etc/letsencrypt/live/logs.spanix.team/privkey.pem; # managed by Certbot include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot } server { - if ($host = logs.spanix.xyz) { + if ($host = logs.spanix.team) { return 301 https://$host$request_uri; - } # managed by Certbot + } # managed by Certbot - listen 80; + listen 80; - server_name logs.spanix.xyz; - return 404; # managed by Certbot + server_name logs.spanix.team; + return 404; # managed by Certbot -} + } diff --git a/nginx/sites-available/lsf.spanix.team.conf b/nginx/sites-available/lsf.spanix.team.conf new file mode 100644 index 0000000..cd387d2 --- /dev/null +++ b/nginx/sites-available/lsf.spanix.team.conf @@ -0,0 +1,36 @@ +server { + access_log /var/log/nginx/lsf.spanix.access.log combined; + + server_name lsf.spanix.team; + include configs/general.conf; + include configs/securityheaders.conf; + + location / { + proxy_pass http://127.0.0.1:40050; + include configs/proxyheaders.conf; + } + + + listen [::]:443 ssl http2; # managed by Certbot + listen 443 ssl http2; # managed by Certbot + ssl_certificate /etc/letsencrypt/live/lsf.spanix.team/fullchain.pem; # managed by Certbot + ssl_certificate_key /etc/letsencrypt/live/lsf.spanix.team/privkey.pem; # managed by Certbot + include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot + ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot + +} + + server { + if ($host = lsf.spanix.team) { + return 301 https://$host$request_uri; + } # managed by Certbot + + + listen 80; + listen [::]:80; + + server_name lsf.spanix.team; + return 404; # managed by Certbot + + + } diff --git a/nginx/sites-enabled/lsf.spanix.team.conf b/nginx/sites-enabled/lsf.spanix.team.conf new file mode 120000 index 0000000..85c8350 --- /dev/null +++ b/nginx/sites-enabled/lsf.spanix.team.conf @@ -0,0 +1 @@ +../sites-available/lsf.spanix.team.conf \ No newline at end of file