From c39cd210f82b026b97a43c6a901656ad4eba58c6 Mon Sep 17 00:00:00 2001 From: Ethan Paul Date: Wed, 10 Apr 2024 18:49:01 -0400 Subject: [PATCH] Move nginx config to template file Replace hardcoded config values with environment variables --- nginx.conf => nginx/nginx.conf.template | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename nginx.conf => nginx/nginx.conf.template (98%) 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;