NGINX-Configs/etc/nginx/conf.d/conorz.at.conf
titanz 0dc32f127e
Some checks failed
ShellCheck / Shell syntax checker (push) Has been cancelled
first commit
2025-01-01 06:29:34 +01:00

47 lines
1.1 KiB
Plaintext

server {
listen 443 quic;
listen 443 ssl;
listen [::]:443 quic;
listen [::]:443 ssl;
server_name conorz.at;
include snippets/hsts.conf;
include snippets/security.conf;
include snippets/quic.conf;
include snippets/proxy.conf;
include snippets/robots.conf;
include snippets/universal_paths.conf;
add_header Cross-Origin-Resource-Policy "same-origin" always;
add_header Cross-Origin-Opener-Policy "same-origin" always;
ssl_certificate /etc/letsencrypt/live/conorz.at/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/conorz.at/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/conorz.at/cert.pem;
error_page 404 /404.html;
location = /404.html {
root /website/dist;
internal;
}
error_page 403 /403.html;
location = /403.html {
root /website/dist;
internal;
}
client_max_body_size 128M;
location / {
root /website/dist;
index index.html;
}
location ^~ /_matrix/ {
proxy_pass http://127.0.0.1:8008;
}
}