🗝
summary refs log tree commit diff
path: root/nginx/server.conf
diff options
context:
space:
mode:
authormia <mia@mia.jetzt>2024-06-30 18:29:59 -0700
committermia <mia@mia.jetzt>2024-06-30 18:29:59 -0700
commit809608c7ef4801f80adbd0ae07301e39c11e3951 (patch)
treebccd7c0607bd7edc3a2380fa230996c688357475 /nginx/server.conf
downloadcallosum-809608c7ef4801f80adbd0ae07301e39c11e3951.tar.gz
callosum-809608c7ef4801f80adbd0ae07301e39c11e3951.zip
initial commit
Diffstat (limited to 'nginx/server.conf')
-rw-r--r--nginx/server.conf19
1 files changed, 19 insertions, 0 deletions
diff --git a/nginx/server.conf b/nginx/server.conf
new file mode 100644
index 0000000..d4f35f3
--- /dev/null
+++ b/nginx/server.conf
@@ -0,0 +1,19 @@
+server {
+	listen 443 quic;
+	listen 443 ssl;
+	server_name %HOST% *.%HOST%;
+	add_header alt-svc 'h3=":443"; ma=86400';
+	ssl_certificate /etc/tls/%HOST%.crt;
+	ssl_certificate_key /etc/tls/%HOST%.key;
+	location / {
+		proxy_pass http://[fd74:5ca2:5071::1]:80;
+		proxy_http_version 1.1;
+		proxy_redirect off;
+		proxy_set_header Host $host;
+		proxy_set_header X-Real-IP $remote_addr;
+		proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+		proxy_set_header X-Forwarded-Proto https;
+		proxy_set_header Upgrade $http_upgrade;
+		proxy_set_header Connection $connection_upgrade;
+	}
+}