mirror of
https://shylinux.com/x/ContextOS
synced 2025-04-26 01:04:06 +08:00
58 lines
1.3 KiB
Nginx Configuration File
58 lines
1.3 KiB
Nginx Configuration File
user shy;
|
|
|
|
worker_processes 1;
|
|
|
|
events {
|
|
worker_connections 1024;
|
|
}
|
|
|
|
http {
|
|
include mime.types;
|
|
default_type application/octet-stream;
|
|
keepalive_timeout 1800;
|
|
|
|
sendfile on;
|
|
proxy_buffering off;
|
|
|
|
server {
|
|
listen 80;
|
|
server_name shylinux.com;
|
|
|
|
location / {
|
|
return 302 https://shylinux.com/;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl;
|
|
server_name shylinux.com;
|
|
|
|
ssl_certificate 6157098_shylinux.com.pem;
|
|
ssl_certificate_key 6157098_shylinux.com.key;
|
|
|
|
ssl_session_cache shared:SSL:1m;
|
|
ssl_session_timeout 30m;
|
|
|
|
ssl_ciphers HIGH:!aNULL:!MD5;
|
|
ssl_prefer_server_ciphers on;
|
|
|
|
client_max_body_size 100m;
|
|
|
|
location / {
|
|
proxy_pass http://127.0.0.1:9020;
|
|
proxy_set_header X-HOST $scheme://$http_host;
|
|
proxy_set_header X-Real-Port $remote_port;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
}
|
|
|
|
location /space/ {
|
|
proxy_pass http://127.0.0.1:9020;
|
|
proxy_set_header X-HOST $scheme://$http_host;
|
|
proxy_set_header X-Real-Port $remote_port;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
}
|
|
}
|
|
}
|