0e9fb360e1
Gitea Branch PR & Ansible Deployment / Check and Create PR (push) Failing after 18s
Gitea Branch PR & Ansible Deployment / Ansible Dry Run (benedikta) (push) Has been skipped
Gitea Branch PR & Ansible Deployment / Ansible Dry Run (rikku) (push) Has been skipped
Gitea Branch PR & Ansible Deployment / Ansible Dry Run (rinoa) (push) Has been skipped
Gitea Branch PR & Ansible Deployment / PR Merge (push) Has been skipped
Gitea Branch PR & Ansible Deployment / Ansible Config Deployment (benedikta) (push) Has been skipped
Gitea Branch PR & Ansible Deployment / Ansible Config Deployment (rikku) (push) Has been skipped
Gitea Branch PR & Ansible Deployment / Ansible Config Deployment (rinoa) (push) Has been skipped
98 lines
3.2 KiB
Plaintext
98 lines
3.2 KiB
Plaintext
## Version 2024/07/16 - Changelog: https://github.com/linuxserver/docker-swag/commits/master/root/defaults/nginx/site-confs/default.conf.sample
|
|
|
|
# Sablier JS (https://github.com/sablierapp/sablier/issues/110#issuecomment-2479909234)
|
|
js_import /etc/nginx/conf.d/sablier.js;
|
|
|
|
# redirect all traffic to https
|
|
server {
|
|
listen 80 default_server;
|
|
listen [::]:80 default_server;
|
|
|
|
location / {
|
|
return 301 https://$host$request_uri;
|
|
}
|
|
}
|
|
|
|
# main server block
|
|
server {
|
|
listen 443 ssl default_server;
|
|
listen [::]:443 ssl default_server;
|
|
|
|
server_name _;
|
|
|
|
include /config/nginx/ssl.conf;
|
|
|
|
root /config/www;
|
|
index index.html index.htm index.php;
|
|
|
|
# enable subfolder method reverse proxy confs
|
|
include /config/nginx/proxy-confs/*.subfolder.conf;
|
|
|
|
# enable for ldap auth (requires ldap-location.conf in the location block)
|
|
#include /config/nginx/ldap-server.conf;
|
|
|
|
# enable for Authelia (requires authelia-location.conf in the location block)
|
|
#include /config/nginx/authelia-server.conf;
|
|
|
|
# enable for Authentik (requires authentik-location.conf in the location block)
|
|
#include /config/nginx/authentik-server.conf;
|
|
|
|
# location / {
|
|
# # enable for basic auth
|
|
# #auth_basic "Restricted";
|
|
# #auth_basic_user_file /config/nginx/.htpasswd;
|
|
|
|
# # enable for ldap auth (requires ldap-server.conf in the server block)
|
|
# #include /config/nginx/ldap-location.conf;
|
|
|
|
# # enable for Authelia (requires authelia-server.conf in the server block)
|
|
# #include /config/nginx/authelia-location.conf;
|
|
|
|
# # enable for Authentik (requires authentik-server.conf in the server block)
|
|
# #include /config/nginx/authentik-location.conf;
|
|
|
|
# try_files $uri $uri/ /index.html /index.htm /index.php$is_args$args;
|
|
|
|
# auth_request /auth;
|
|
# error_page 401 =200 /ldaplogin;
|
|
|
|
# include /config/nginx/proxy.conf;
|
|
# resolver 127.0.0.11 valid=30s;
|
|
# set $upstream_app homepage;
|
|
# set $upstream_port 3000;
|
|
# set $upstream_proto http;
|
|
# proxy_pass $upstream_proto://$upstream_app:$upstream_port;
|
|
# }
|
|
|
|
location ~ ^(.+\.php)(.*)$ {
|
|
# enable the next two lines for http auth
|
|
#auth_basic "Restricted";
|
|
#auth_basic_user_file /config/nginx/.htpasswd;
|
|
|
|
# enable for ldap auth (requires ldap-server.conf in the server block)
|
|
#include /config/nginx/ldap-location.conf;
|
|
|
|
# enable for Authelia (requires authelia-server.conf in the server block)
|
|
#include /config/nginx/authelia-location.conf;
|
|
|
|
# enable for Authentik (requires authentik-server.conf in the server block)
|
|
#include /config/nginx/authentik-location.conf;
|
|
|
|
fastcgi_split_path_info ^(.+\.php)(.*)$;
|
|
if (!-f $document_root$fastcgi_script_name) { return 404; }
|
|
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;
|