Update website nginx configuration to version 4.0.0.3.
This commit is contained in:
parent
2a4c16d7ff
commit
58cd5b6f29
@ -4,7 +4,7 @@
|
||||
# Copyright 2022-2023 Jake Winters
|
||||
# SPDX-License-Identifier: BSD-3-Clause-Clear
|
||||
|
||||
# Version: 3.0.0.2
|
||||
# Version: 4.0.0.3
|
||||
|
||||
|
||||
# Server (unencrypted)
|
||||
@ -14,7 +14,7 @@ server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
|
||||
# Location.
|
||||
# Location
|
||||
location / {
|
||||
return 301 https://$server_name$request_uri;
|
||||
}
|
||||
@ -22,12 +22,12 @@ server {
|
||||
|
||||
# Server (TLS)
|
||||
server {
|
||||
# General.
|
||||
# General
|
||||
server_name inferencium.net;
|
||||
listen 443 ssl http2;
|
||||
listen [::]:443 ssl http2;
|
||||
|
||||
# Location.
|
||||
# Location
|
||||
location / {
|
||||
root /srv/www/inferencium;
|
||||
index index.html;
|
||||
@ -36,7 +36,7 @@ server {
|
||||
rewrite ^/(.*)/$ /$1 permanent;
|
||||
}
|
||||
|
||||
# Security.
|
||||
# Security
|
||||
ssl_trusted_certificate /etc/letsencrypt/live/inferencium.net/chain.pem;
|
||||
ssl_certificate /etc/letsencrypt/live/inferencium.net/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/inferencium.net/privkey.pem;
|
||||
@ -67,3 +67,13 @@ server {
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
}
|
||||
|
||||
# MIME types
|
||||
types {
|
||||
text/html html;
|
||||
text/css css;
|
||||
text/xml xml;
|
||||
text/plain txt;
|
||||
image/png png;
|
||||
image/jpeg jpg;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user