1
0
forked from x/ContextOS
This commit is contained in:
harveyshao 2022-02-25 19:56:44 +08:00
parent dada079f2a
commit f22656116f

View File

@ -3,55 +3,55 @@ user shy;
worker_processes 1; worker_processes 1;
events { events {
worker_connections 1024; worker_connections 1024;
} }
http { http {
include mime.types; include mime.types;
default_type application/octet-stream; default_type application/octet-stream;
keepalive_timeout 1800; keepalive_timeout 1800;
sendfile on; sendfile on;
proxy_buffering off; proxy_buffering off;
server { server {
listen 80; listen 80;
server_name shylinux.com; server_name shylinux.com;
location / { location / {
return 302 https://shylinux.com/; return 302 https://shylinux.com/;
} }
} }
server { server {
listen 443 ssl; listen 443 ssl;
server_name shylinux.com; server_name shylinux.com;
ssl_certificate 6157098_shylinux.com.pem; ssl_certificate 6157098_shylinux.com.pem;
ssl_certificate_key 6157098_shylinux.com.key; ssl_certificate_key 6157098_shylinux.com.key;
ssl_session_cache shared:SSL:1m; ssl_session_cache shared:SSL:1m;
ssl_session_timeout 30m; ssl_session_timeout 30m;
ssl_ciphers HIGH:!aNULL:!MD5; ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on; ssl_prefer_server_ciphers on;
client_max_body_size 100m; client_max_body_size 100m;
location / { location / {
proxy_pass http://127.0.0.1:9020; proxy_pass http://127.0.0.1:9020;
proxy_set_header X-HOST $scheme://$http_host; proxy_set_header X-HOST $scheme://$http_host;
proxy_set_header X-Real-Port $remote_port; proxy_set_header X-Real-Port $remote_port;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
} }
location /space/ { location /space/ {
proxy_pass http://127.0.0.1:9020; proxy_pass http://127.0.0.1:9020;
proxy_set_header X-HOST $scheme://$http_host; proxy_set_header X-HOST $scheme://$http_host;
proxy_set_header X-Real-Port $remote_port; proxy_set_header X-Real-Port $remote_port;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade"; proxy_set_header Connection "upgrade";
} }
} }
} }