Backup before adding SMTP stream proxy configuration
This commit is contained in:
@@ -1,8 +1,17 @@
|
||||
add_header X-Robots-Tag "no-referrer, noindex, nofollow, nosnippet, noarchive";
|
||||
|
||||
proxy_cache_path /tmp/nextcloud/ levels=1:2 keys_zone=my_cache_nextcloud:10m max_size=10g
|
||||
# Reduced cache size due to disk space constraints
|
||||
proxy_cache_path /var/cache/nginx/nextcloud levels=1:2 keys_zone=my_cache_nextcloud:10m max_size=2g
|
||||
inactive=60m use_temp_path=off;
|
||||
|
||||
# Upstream with keepalive
|
||||
upstream nextcloud_backend {
|
||||
server 10.0.0.48:8089;
|
||||
keepalive 16;
|
||||
keepalive_requests 1000;
|
||||
keepalive_timeout 60s;
|
||||
}
|
||||
|
||||
server{
|
||||
listen 80;
|
||||
server_name nextcloud.egonetix.de;
|
||||
@@ -39,7 +48,7 @@ server {
|
||||
proxy_cache_use_stale error timeout updating http_500 http_502 http_503 http_504;
|
||||
proxy_cache_lock on;
|
||||
proxy_pass_header Authorization;
|
||||
proxy_pass http://$upstream:8089;
|
||||
proxy_pass http://nextcloud_backend;
|
||||
proxy_set_header X-Forwarded-Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-Server $host;
|
||||
|
||||
Reference in New Issue
Block a user