Created
August 12, 2025 14:27
-
-
Save dw5/12acc18e0ff635f9835e0e278f63253f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| worker_processes 4; | |
| # error_log /tmp/kvmd-nginx.error.log; | |
| error_log stderr; | |
| include /usr/share/kvmd/extras/*/nginx.ctx-main.conf; | |
| events { | |
| worker_connections 1024; | |
| use epoll; | |
| multi_accept on; | |
| } | |
| http { | |
| types_hash_max_size 4096; | |
| server_names_hash_bucket_size 128; | |
| access_log off; | |
| include /etc/kvmd/nginx/mime-types.conf; | |
| default_type application/octet-stream; | |
| charset utf-8; | |
| sendfile on; | |
| tcp_nodelay on; | |
| tcp_nopush on; | |
| keepalive_timeout 10; | |
| client_max_body_size 4k; | |
| proxy_send_timeout 180s; | |
| proxy_read_timeout 180s; | |
| client_body_temp_path /tmp/kvmd-nginx/client_body_temp; | |
| fastcgi_temp_path /tmp/kvmd-nginx/fastcgi_temp; | |
| proxy_temp_path /tmp/kvmd-nginx/proxy_temp; | |
| scgi_temp_path /tmp/kvmd-nginx/scgi_temp; | |
| uwsgi_temp_path /tmp/kvmd-nginx/uwsgi_temp; | |
| include /etc/kvmd/nginx/kvmd.ctx-http.conf; | |
| include /usr/share/kvmd/extras/*/nginx.ctx-http.conf; | |
| server { | |
| listen 80; | |
| listen [::]:80; | |
| include /etc/kvmd/nginx/certbot.ctx-server.conf; | |
| location / { | |
| return 301 https://$host$request_uri; | |
| } | |
| } | |
| server { | |
| listen 8888 ssl; | |
| listen [::]:8888 ssl; | |
| http2 on; | |
| include /etc/kvmd/nginx/ssl.conf; | |
| include /etc/kvmd/nginx/kvmd.ctx-server.conf; | |
| include /usr/share/kvmd/extras/*/nginx.ctx-server.conf; | |
| } | |
| server { | |
| listen 443 ssl; | |
| listen [::]:443 ssl; | |
| http2 on; | |
| include /etc/kvmd/nginx/ssl.conf; | |
| include /etc/kvmd/nginx/gl.ctx-server.conf; | |
| include /usr/share/kvmd/extras/*/nginx.ctx-server.conf; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment