mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-06-26 18:23:11 -04:00
648881fb01
* Update default.conf.sample * Update proxy.conf.sample * Update Dockerfile * Delete proxy.conf.sample * Update Dockerfile
49 lines
1.3 KiB
Plaintext
49 lines
1.3 KiB
Plaintext
## Version 2023/05/18 - Changelog: https://github.com/linuxserver/docker-mods/commits/nginx-proxy-confs/root/defaults/nginx/site-confs/default.conf.sample
|
|
|
|
server {
|
|
listen 80 default_server;
|
|
listen [::]:80 default_server;
|
|
|
|
listen 443 ssl http2 default_server;
|
|
listen [::]:443 ssl http2 default_server;
|
|
|
|
server_name _;
|
|
|
|
include /config/nginx/ssl.conf;
|
|
|
|
set $root /app/www/public;
|
|
if (!-d /app/www/public) {
|
|
set $root /config/www;
|
|
}
|
|
root $root;
|
|
index index.html index.htm index.php;
|
|
|
|
# enable subfolder method reverse proxy confs
|
|
include /config/nginx/proxy-confs/*.subfolder.conf;
|
|
|
|
location / {
|
|
# enable for basic auth
|
|
#auth_basic "Restricted";
|
|
#auth_basic_user_file /config/nginx/.htpasswd;
|
|
|
|
try_files $uri $uri/ /index.html /index.php$is_args$args =404;
|
|
}
|
|
|
|
location ~ ^(.+\.php)(.*)$ {
|
|
fastcgi_split_path_info ^(.+\.php)(.*)$;
|
|
fastcgi_pass 127.0.0.1:9000;
|
|
fastcgi_index index.php;
|
|
include /etc/nginx/fastcgi_params;
|
|
}
|
|
|
|
# deny access to .htaccess/.htpasswd files
|
|
location ~ /\.ht {
|
|
deny all;
|
|
}
|
|
}
|
|
|
|
# enable subdomain method reverse proxy confs
|
|
include /config/nginx/proxy-confs/*.subdomain.conf;
|
|
# enable proxy cache for auth
|
|
proxy_cache_path cache/ keys_zone=auth_cache:10m;
|