From bf805a3acba7f2c624c93af892d823033d47f0c2 Mon Sep 17 00:00:00 2001 From: Mistivia Date: Sun, 2 Nov 2025 15:39:26 +0800 Subject: add nginx config --- nginx/http.conf | 16 ++++++++++++++++ nginx/stream.conf | 9 +++++++++ 2 files changed, 25 insertions(+) create mode 100644 nginx/http.conf create mode 100644 nginx/stream.conf diff --git a/nginx/http.conf b/nginx/http.conf new file mode 100644 index 0000000..0b46a72 --- /dev/null +++ b/nginx/http.conf @@ -0,0 +1,16 @@ +server { + listen 443 ssl; + listen [::]:443 ssl; + server_name raye.mistivia.com; + # ... + location /webirc { + proxy_pass http://127.0.0.1:8067; + proxy_read_timeout 600s; + proxy_http_version 1.1; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "Upgrade"; + proxy_set_header X-Forwarded-For $remote_addr; + proxy_set_header X-Forwarded-Proto $scheme; + } +} diff --git a/nginx/stream.conf b/nginx/stream.conf new file mode 100644 index 0000000..a3af645 --- /dev/null +++ b/nginx/stream.conf @@ -0,0 +1,9 @@ +stream { + server { + listen 6697 ssl; + proxy_pass 127.0.0.1:6668; + proxy_protocol on; + ssl_certificate /etc/letsencrypt/live/raye.mistivia.com/fullchain.pem; + ssl_certificate_key /etc/letsencrypt/live/raye.mistivia.com/privkey.pem; + } +} \ No newline at end of file -- cgit v1.0