From 067f8f92b568527e94e2a04fa495f86f1820a4bc Mon Sep 17 00:00:00 2001 From: Mitchell Riedstra Date: Thu, 14 Oct 2021 17:01:23 -0400 Subject: Move to environment vars. Create a container that sets up a demo. Instead of the old method with scripts, docker-compose file, everything is pulled into the main container with various configuration options allowed from environment variables. Also move settings.py away from the old yaml setup and pull directly from the environment instead. --- nginx.conf | 55 ------------------------------------------------------- 1 file changed, 55 deletions(-) delete mode 100644 nginx.conf (limited to 'nginx.conf') diff --git a/nginx.conf b/nginx.conf deleted file mode 100644 index 38b31df..0000000 --- a/nginx.conf +++ /dev/null @@ -1,55 +0,0 @@ -worker_processes 1; - -events { - worker_connections 1024; -} - - -http { - include mime.types; - default_type application/octet-stream; - - sendfile on; - #tcp_nopush on; - - #keepalive_timeout 0; - keepalive_timeout 65; - - gzip on; - - server_tokens off; - - server { - listen 80; - listen [::]:80; - listen 8000; - listen [::]:8000; - server_name localhost; - - location / { - include uwsgi_params; - client_max_body_size 20m; - client_body_timeout 300s; - uwsgi_pass app:9200; - } - - # Pass through the static directory - # This should match whatever is in your config file - location /static { - alias /var/www; - } - location /robots.txt { - alias /var/www/static/robots.txt; - } - - - # Optionally change the log path. - # access_log /var/log/nginx/dispatch.example.com/access.log; - # error_log /var/log/nginx/dispatch.example.com/error.log; - - } - - include conf.d/*.conf; - -} - -- cgit v1.2.3