diff --git a/nginx.conf b/nginx/nginx.conf.template similarity index 98% rename from nginx.conf rename to nginx/nginx.conf.template index 9d9b962..619c537 100644 --- a/nginx.conf +++ b/nginx/nginx.conf.template @@ -2,7 +2,7 @@ events { worker_connections 1024; } http { upstream php-handler { - server php-fpm-nextcloud:9000; + server ${NEXTCLOUD_PHP_FPM_HOST}; #server unix:/run/php/php8.2-fpm.sock; } @@ -16,7 +16,7 @@ http { listen 80; listen [::]:80; # INFO: Set this to your domain - server_name example.com; + server_name ${NEXTCLOUD_DOMAIN}; # Prevent nginx HTTP Server Detection server_tokens off; @@ -34,7 +34,7 @@ http { add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload" always; # set max upload size and increase upload timeout: - client_max_body_size 512M; + client_max_body_size ${NEXTCLOUD_MAX_UPLOAD_SIZE}; client_body_timeout 300s; fastcgi_buffers 64 4K;