mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-08-03 07:53:39 +00:00
34 lines
1.0 KiB
Plaintext
34 lines
1.0 KiB
Plaintext
server {
|
|
http3 off;
|
|
listen 91 ssl default_server;
|
|
listen [::]:91 ssl default_server;
|
|
|
|
server_name _;
|
|
include conf.d/include/brotli.conf;
|
|
include conf.d/include/force-tls.conf;
|
|
include conf.d/include/tls-ciphers.conf;
|
|
include conf.d/include/block-exploits.conf;
|
|
|
|
modsecurity on;
|
|
modsecurity_rules_file /usr/local/nginx/conf/conf.d/include/modsecurity.conf;
|
|
|
|
#ssl_certificate ;
|
|
#ssl_certificate_key ;
|
|
#ssl_trusted_certificate ;
|
|
|
|
location / {
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection $connection_upgrade;
|
|
include conf.d/include/proxy-location.conf;
|
|
|
|
if ($goaccess = "socket") {
|
|
proxy_pass http://127.0.0.1:48683$request_uri;
|
|
}
|
|
|
|
root /tmp/goa;
|
|
try_files $uri /index.html;
|
|
sub_filter 'WebSocket(str)' 'WebSocket(window.location.origin.split("#")[0].replace(window.location.protocol, window.location.protocol == "https:" ? "wss:" : "ws:"))';
|
|
sub_filter_once on;
|
|
}
|
|
}
|