mirror of
https://github.com/casjaysdevdocker/tor
synced 2025-06-27 15:48:57 -04:00
🗃️ Committing everything that changed 🗃️
All checks were successful
release-tag / release-image (push) Successful in 5m49s
All checks were successful
release-tag / release-image (push) Successful in 5m49s
rootfs/tmp/etc/nginx/nginx.conf rootfs/tmp/etc/nginx/vhosts.d/template
This commit is contained in:
parent
9c1b8fe09e
commit
f99702050a
@ -2,8 +2,8 @@
|
|||||||
user REPLACE_SERVICE_USER;
|
user REPLACE_SERVICE_USER;
|
||||||
worker_processes auto;
|
worker_processes auto;
|
||||||
daemon off;
|
daemon off;
|
||||||
error_log /data/logs/nginx/nginx.log warn;
|
|
||||||
pid /run/nginx.pid;
|
pid /run/nginx.pid;
|
||||||
|
error_log /data/logs/nginx/nginx.log warn;
|
||||||
|
|
||||||
events {
|
events {
|
||||||
worker_connections 1024;
|
worker_connections 1024;
|
||||||
@ -15,10 +15,11 @@ http {
|
|||||||
sendfile on;
|
sendfile on;
|
||||||
keepalive_timeout 65;
|
keepalive_timeout 65;
|
||||||
gzip on;
|
gzip on;
|
||||||
map $http_upgrade $connection_upgrade { default upgrade; '' close; }
|
|
||||||
disable_symlinks off;
|
disable_symlinks off;
|
||||||
root REPLACE_SERVER_WWW_DIR;
|
server_names_hash_bucket_size 128;
|
||||||
access_log /data/logs/nginx/access.REPLACE_SERVER_NAME.log;
|
access_log /data/logs/nginx/access.REPLACE_SERVER_NAME.log;
|
||||||
|
map $http_upgrade $connection_upgrade { default upgrade; '' close; }
|
||||||
|
root REPLACE_SERVER_WWW_DIR;
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen REPLACE_SERVER_PORT default_server;
|
listen REPLACE_SERVER_PORT default_server;
|
||||||
@ -32,7 +33,9 @@ http {
|
|||||||
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
|
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
|
||||||
add_header Content-Security-Policy "script-src 'self' 'unsafe-inline' 'unsafe-eval' *; frame-src 'self' *; object-src 'self'" always;
|
add_header Content-Security-Policy "script-src 'self' 'unsafe-inline' 'unsafe-eval' *; frame-src 'self' *; object-src 'self'" always;
|
||||||
proxy_intercept_errors off;
|
proxy_intercept_errors off;
|
||||||
|
client_max_body_size 0;
|
||||||
|
send_timeout 3600;
|
||||||
|
|
||||||
location ^~ /favicon.ico {
|
location ^~ /favicon.ico {
|
||||||
alias REPLACE_SERVER_WWW_DIR/favicon.ico;
|
alias REPLACE_SERVER_WWW_DIR/favicon.ico;
|
||||||
allow all;
|
allow all;
|
||||||
|
@ -9,6 +9,8 @@ server {
|
|||||||
keepalive_timeout 75 75;
|
keepalive_timeout 75 75;
|
||||||
access_log /data/logs/nginx/access.REPLACE_ONION_SITE.log;
|
access_log /data/logs/nginx/access.REPLACE_ONION_SITE.log;
|
||||||
error_log /data/logs/nginx/error.REPLACE_ONION_SITE.log info;
|
error_log /data/logs/nginx/error.REPLACE_ONION_SITE.log info;
|
||||||
|
client_max_body_size 0;
|
||||||
|
send_timeout 3600;
|
||||||
add_header X-Frame-Options "SAMEORIGIN" always;
|
add_header X-Frame-Options "SAMEORIGIN" always;
|
||||||
add_header X-XSS-Protection "1; mode=block" always;
|
add_header X-XSS-Protection "1; mode=block" always;
|
||||||
add_header X-Content-Type-Options "nosniff" always;
|
add_header X-Content-Type-Options "nosniff" always;
|
||||||
@ -19,7 +21,7 @@ server {
|
|||||||
index index.php index.html index.cgi index.pl index.aspx index.txt index.json index.unknown.php index.default.php;
|
index index.php index.html index.cgi index.pl index.aspx index.txt index.json index.unknown.php index.default.php;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
root REPLACE_ONION_WWW_DIR;
|
root REPLACE_ONION_WWW_DIR;
|
||||||
}
|
}
|
||||||
location ^~ /favicon.ico {
|
location ^~ /favicon.ico {
|
||||||
alias REPLACE_SERVER_WWW_DIR/favicon.ico;
|
alias REPLACE_SERVER_WWW_DIR/favicon.ico;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user