Files
WPIQ/wo/cli/templates/22222.mustache

71 lines
1.7 KiB
Plaintext
Raw Permalink Normal View History

# WordOps admin NGINX CONFIGURATION - WordOps {{release}}
2018-11-13 21:55:59 +01:00
server {
2024-06-08 11:59:18 +02:00
listen {{port}} default_server ssl;
2018-11-13 21:55:59 +01:00
access_log /var/log/nginx/22222.access.log rt_cache;
error_log /var/log/nginx/22222.error.log;
# Force HTTP to HTTPS
2020-01-13 18:24:18 +01:00
error_page 497 =200 https://$host:{{port}}$request_uri;
2018-11-13 21:55:59 +01:00
root {{webroot}}22222/htdocs;
index index.php index.htm index.html;
# Turn on directory listing
autoindex on;
# HTTP Authentication on port 22222
include common/acl.conf;
2019-03-27 04:58:25 +01:00
2019-03-10 20:28:27 +01:00
# nginx-vts-status
location /vts_status {
vhost_traffic_status_bypass_limit on;
vhost_traffic_status_bypass_stats on;
vhost_traffic_status_display;
vhost_traffic_status_display_format html;
2019-03-10 20:28:27 +01:00
}
2018-11-13 21:55:59 +01:00
location / {
try_files $uri $uri/ /index.php$is_args$args;
2018-11-13 21:55:59 +01:00
}
# Display menu at location /fpm/status/
location = /fpm/status/ {}
location ~ /fpm/status/(.*) {
try_files $uri =404;
include fastcgi_params;
fastcgi_param SCRIPT_NAME /status;
fastcgi_pass $1;
}
location ~ \.php$ {
try_files $uri =404;
include fastcgi_params;
2020-05-14 13:06:02 +02:00
fastcgi_pass multiphp;
2018-11-13 21:55:59 +01:00
}
2019-03-27 04:58:25 +01:00
2019-03-10 20:28:27 +01:00
location /netdata {
return 301 /netdata/;
}
location ~ /netdata/(?<ndpath>.*) {
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_http_version 1.1;
proxy_pass_request_headers on;
proxy_set_header Connection "keep-alive";
proxy_store off;
proxy_pass http://netdata/$ndpath$is_args$args;
}
2019-04-12 02:43:41 +02:00
include {{webroot}}22222/conf/nginx/*.conf;
}