|
|
@@ -0,0 +1,43 @@
|
|
|
+server {
|
|
|
+ listen 80;
|
|
|
+ server_name _;
|
|
|
+
|
|
|
+ return 301 https://$host$request_uri;
|
|
|
+}
|
|
|
+
|
|
|
+server {
|
|
|
+ listen 443 ssl;
|
|
|
+ server_name _;
|
|
|
+
|
|
|
+ ssl_certificate /etc/nginx/http.d/ip.crt;
|
|
|
+ ssl_certificate_key /etc/nginx/http.d/ip.key;
|
|
|
+ ssl_session_timeout 5m;
|
|
|
+ ssl_protocols TLSv1.2 TLSv1.3;
|
|
|
+ ssl_ciphers HIGH:!aNULL:!MD5;
|
|
|
+ ssl_prefer_server_ciphers on;
|
|
|
+
|
|
|
+ client_max_body_size 1024m;
|
|
|
+
|
|
|
+ location /group/signal {
|
|
|
+ proxy_pass https://im.whatup.cc;
|
|
|
+ proxy_http_version 1.1;
|
|
|
+ proxy_set_header Upgrade $http_upgrade;
|
|
|
+ proxy_set_header Connection "upgrade";
|
|
|
+ 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 $scheme;
|
|
|
+ }
|
|
|
+
|
|
|
+ location / {
|
|
|
+ proxy_ssl_server_name on;
|
|
|
+ proxy_ssl_verify 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_pass https://im.whatup.cc;
|
|
|
+ }
|
|
|
+}
|