1
0
mirror of https://shylinux.com/x/ContextOS synced 2025-04-28 01:52:00 +08:00
ContextOS/etc/conf/nginx.conf
2022-08-15 12:26:47 +08:00

37 lines
642 B
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 shylinux.com;
location / {
include header.conf;
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 8293704_shylinux.com.key;
ssl_certificate 8293704_shylinux.com.pem;
include location.conf;
}
}