mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-18 16:58:27 -04:00
Linter go brrr
This commit is contained in:
+5
-5
@@ -2,15 +2,15 @@ FROM ghcr.io/linuxserver/baseimage-alpine:3.12 as grab-stage
|
|||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
apk add --no-cache --upgrade \
|
apk add --no-cache --upgrade \
|
||||||
curl \
|
curl \
|
||||||
tar && \
|
tar && \
|
||||||
mkdir -p /root/defaults/proxy-confs && \
|
mkdir -p /root/defaults/proxy-confs && \
|
||||||
curl -o \
|
curl -o \
|
||||||
/tmp/proxy.tar.gz -L \
|
/tmp/proxy.tar.gz -L \
|
||||||
"https://github.com/linuxserver/reverse-proxy-confs/tarball/master" && \
|
"https://github.com/linuxserver/reverse-proxy-confs/tarball/master" && \
|
||||||
tar xf \
|
tar xf \
|
||||||
/tmp/proxy.tar.gz -C \
|
/tmp/proxy.tar.gz -C \
|
||||||
/root/defaults/proxy-confs \
|
/root/defaults/proxy-confs \
|
||||||
--strip-components=1 \
|
--strip-components=1 \
|
||||||
--exclude=linux*/.gitattributes \
|
--exclude=linux*/.gitattributes \
|
||||||
--exclude=linux*/.github \
|
--exclude=linux*/.github \
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
This mod adds some of the [proxy-conf](https://github.com/linuxserver/reverse-proxy-confs) functionality that is baked into [SWAG](https://github.com/linuxserver/docker-swag), to Nginx.
|
This mod adds some of the [proxy-conf](https://github.com/linuxserver/reverse-proxy-confs) functionality that is baked into [SWAG](https://github.com/linuxserver/docker-swag), to Nginx.
|
||||||
|
|
||||||
This mod does some reshuffling to the files that originally ships with our Nginx image. You have to track changes to these files yourself. If you are adding this mod to an exsisting install you have to modify, or replace these files yourself.
|
This mod does some reshuffling to the files that originally ships with our Nginx image. You have to track changes to these files yourself. If you are adding this mod to an existing install you have to modify, or replace these files yourself.
|
||||||
|
|
||||||
| File | Change |
|
| File | Change |
|
||||||
| --- | --- |
|
| --- | --- |
|
||||||
|
|||||||
+19
-19
@@ -1,33 +1,33 @@
|
|||||||
## Version 2020/12/11 - Changelog: https://github.com/linuxserver/docker-mods/blob/nginx-proxy-confs/root/defaults/nginx.conf
|
## Version 2020/12/11 - Changelog: https://github.com/linuxserver/docker-mods/blob/nginx-proxy-confs/root/defaults/nginx.conf
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80 default_server;
|
listen 80 default_server;
|
||||||
listen 443 ssl;
|
listen 443 ssl;
|
||||||
server_name _;
|
server_name _;
|
||||||
|
|
||||||
root /config/www;
|
root /config/www;
|
||||||
|
|
||||||
index index.html index.htm index.php;
|
index index.html index.htm index.php;
|
||||||
|
|
||||||
# enable subfolder method reverse proxy confs
|
# enable subfolder method reverse proxy confs
|
||||||
include /config/nginx/proxy-confs/*.subfolder.conf;
|
include /config/nginx/proxy-confs/*.subfolder.conf;
|
||||||
|
|
||||||
ssl_certificate /config/keys/cert.crt;
|
ssl_certificate /config/keys/cert.crt;
|
||||||
ssl_certificate_key /config/keys/cert.key;
|
ssl_certificate_key /config/keys/cert.key;
|
||||||
|
|
||||||
|
|
||||||
client_max_body_size 0;
|
client_max_body_size 0;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ /index.html /index.php?$args =404;
|
try_files $uri $uri/ /index.html /index.php?$args =404;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ \.php$ {
|
location ~ \.php$ {
|
||||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||||
fastcgi_pass 127.0.0.1:9000;
|
fastcgi_pass 127.0.0.1:9000;
|
||||||
fastcgi_index index.php;
|
fastcgi_index index.php;
|
||||||
include /etc/nginx/fastcgi_params;
|
include /etc/nginx/fastcgi_params;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+62
-62
@@ -6,86 +6,86 @@ pid /run/nginx.pid;
|
|||||||
include /etc/nginx/modules/*.conf;
|
include /etc/nginx/modules/*.conf;
|
||||||
|
|
||||||
events {
|
events {
|
||||||
worker_connections 768;
|
worker_connections 768;
|
||||||
# multi_accept on;
|
# multi_accept on;
|
||||||
}
|
}
|
||||||
|
|
||||||
http {
|
http {
|
||||||
|
|
||||||
##
|
##
|
||||||
# Basic Settings
|
# Basic Settings
|
||||||
##
|
##
|
||||||
|
|
||||||
client_body_buffer_size 128k;
|
client_body_buffer_size 128k;
|
||||||
client_max_body_size 0;
|
client_max_body_size 0;
|
||||||
keepalive_timeout 65;
|
keepalive_timeout 65;
|
||||||
large_client_header_buffers 4 16k;
|
large_client_header_buffers 4 16k;
|
||||||
send_timeout 5m;
|
send_timeout 5m;
|
||||||
sendfile on;
|
sendfile on;
|
||||||
tcp_nodelay on;
|
tcp_nodelay on;
|
||||||
tcp_nopush on;
|
tcp_nopush on;
|
||||||
types_hash_max_size 2048;
|
types_hash_max_size 2048;
|
||||||
variables_hash_max_size 2048;
|
variables_hash_max_size 2048;
|
||||||
|
|
||||||
# server_tokens off;
|
# server_tokens off;
|
||||||
# server_names_hash_bucket_size 64;
|
# server_names_hash_bucket_size 64;
|
||||||
# server_name_in_redirect off;
|
# server_name_in_redirect off;
|
||||||
|
|
||||||
include /etc/nginx/mime.types;
|
include /etc/nginx/mime.types;
|
||||||
default_type application/octet-stream;
|
default_type application/octet-stream;
|
||||||
|
|
||||||
##
|
##
|
||||||
# Logging Settings
|
# Logging Settings
|
||||||
##
|
##
|
||||||
|
|
||||||
access_log /config/log/nginx/access.log;
|
access_log /config/log/nginx/access.log;
|
||||||
error_log /config/log/nginx/error.log;
|
error_log /config/log/nginx/error.log;
|
||||||
|
|
||||||
##
|
##
|
||||||
# Gzip Settings
|
# Gzip Settings
|
||||||
##
|
##
|
||||||
|
|
||||||
gzip on;
|
gzip on;
|
||||||
gzip_disable "msie6";
|
gzip_disable "msie6";
|
||||||
|
|
||||||
# gzip_vary on;
|
# gzip_vary on;
|
||||||
# gzip_proxied any;
|
# gzip_proxied any;
|
||||||
# gzip_comp_level 6;
|
# gzip_comp_level 6;
|
||||||
# gzip_buffers 16 8k;
|
# gzip_buffers 16 8k;
|
||||||
# gzip_http_version 1.1;
|
# gzip_http_version 1.1;
|
||||||
# gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
|
# gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
|
||||||
|
|
||||||
##
|
##
|
||||||
# nginx-naxsi config
|
# nginx-naxsi config
|
||||||
##
|
##
|
||||||
# Uncomment it if you installed nginx-naxsi
|
# Uncomment it if you installed nginx-naxsi
|
||||||
##
|
##
|
||||||
|
|
||||||
#include /etc/nginx/naxsi_core.rules;
|
#include /etc/nginx/naxsi_core.rules;
|
||||||
|
|
||||||
##
|
##
|
||||||
# nginx-passenger config
|
# nginx-passenger config
|
||||||
##
|
##
|
||||||
# Uncomment it if you installed nginx-passenger
|
# Uncomment it if you installed nginx-passenger
|
||||||
##
|
##
|
||||||
|
|
||||||
#passenger_root /usr;
|
#passenger_root /usr;
|
||||||
#passenger_ruby /usr/bin/ruby;
|
#passenger_ruby /usr/bin/ruby;
|
||||||
|
|
||||||
##
|
##
|
||||||
# WebSocket proxying
|
# WebSocket proxying
|
||||||
##
|
##
|
||||||
map $http_upgrade $connection_upgrade {
|
map $http_upgrade $connection_upgrade {
|
||||||
default upgrade;
|
default upgrade;
|
||||||
'' close;
|
'' close;
|
||||||
}
|
}
|
||||||
|
|
||||||
##
|
##
|
||||||
# Virtual Host Configs
|
# Virtual Host Configs
|
||||||
##
|
##
|
||||||
include /etc/nginx/conf.d/*.conf;
|
include /etc/nginx/conf.d/*.conf;
|
||||||
include /config/nginx/site-confs/*;
|
include /config/nginx/site-confs/*;
|
||||||
lua_load_resty_core off;
|
lua_load_resty_core off;
|
||||||
}
|
}
|
||||||
|
|
||||||
daemon off;
|
daemon off;
|
||||||
Reference in New Issue
Block a user