Explicitly define MIME types for website content. Remove unnecessary periods from section comments.

This commit is contained in:
inference 2023-03-23 00:43:44 +00:00
parent 6aa7f4876b
commit 8e1b05d74e
Signed by: inference
SSH Key Fingerprint: SHA256:9Pl0nZ2UJacgm+IeEtLSZ4FOESgP1eKCtRflfPfdX9M

View File

@ -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;
}