summaryrefslogtreecommitdiff
path: root/nginx
diff options
context:
space:
mode:
authorMistivia <i@mistivia.com>2025-11-02 15:39:26 +0800
committerMistivia <i@mistivia.com>2025-11-02 15:39:26 +0800
commitbf805a3acba7f2c624c93af892d823033d47f0c2 (patch)
tree3fa2c86f994fb2da79115ba552412d8818e63a62 /nginx
parenta1f5ffef8fc167d44a2bdfc4b3ba8a0ad39f201b (diff)
add nginx config
Diffstat (limited to 'nginx')
-rw-r--r--nginx/http.conf16
-rw-r--r--nginx/stream.conf9
2 files changed, 25 insertions, 0 deletions
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