1
0
mirror of https://shylinux.com/x/ContextOS synced 2025-04-27 17:48:27 +08:00
ContextOS/etc/conf/nginx.conf
2022-07-01 14:52:01 +08:00

71 lines
1.4 KiB
Nginx Configuration File

worker_processes 1;
events { worker_connections 1024; }
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
proxy_buffering off;
keepalive_timeout 1800;
server {
listen 80;
server_name contexts.top;
location / { return 302 https://contexts.top/; }
}
server {
listen 443 ssl;
server_name contexts.top;
ssl_certificate_key contexts.top_nginx/contexts.top.key;
ssl_certificate contexts.top_nginx/contexts.top_bundle.pem;
include location.conf;
}
server {
listen 80;
server_name contexts.com.cn;
location / { return 302 https://contexts.com.cn/; }
}
server {
listen 443 ssl;
server_name contexts.com.cn;
ssl_certificate_key 7424713_contexts.com.cn.key;
ssl_certificate 7424713_contexts.com.cn.pem;
include location.conf;
}
server {
listen 80;
server_name shylinux.com;
location / {
proxy_set_header X-HOST $scheme://$http_host;
proxy_set_header X-Real-Port $remote_port;
proxy_set_header X-Real-IP $remote_addr;
if ($http_user_agent ~* "^Wget") {
proxy_pass http://127.0.0.1:9020;
break;
}
return 302 https://shylinux.com/;
}
}
server {
listen 443 ssl;
server_name shylinux.com;
ssl_certificate_key 6157098_shylinux.com.key;
ssl_certificate 6157098_shylinux.com.pem;
include location.conf;
}
}