From a0461221f09cbdcaaa605e88740db949c87d9b71 Mon Sep 17 00:00:00 2001 From: benoit74 Date: Fri, 27 Sep 2024 06:32:51 +0000 Subject: [PATCH] Remove unused old nginx files --- entrypoint.sh | 11 ----------- nginx.conf | 46 ---------------------------------------------- 2 files changed, 57 deletions(-) delete mode 100755 entrypoint.sh delete mode 100644 nginx.conf diff --git a/entrypoint.sh b/entrypoint.sh deleted file mode 100755 index c87cb01..0000000 --- a/entrypoint.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh - -JS_PATH=/usr/share/nginx/html/environ.json -echo "dump ZIM* environ variables to $JS_PATH" - -python -c 'import os; import json; print(json.dumps({k: v for k, v in os.environ.items() if k.startswith("ZIM")}, indent=4))' > $JS_PATH - -cat $JS_PATH -echo "-----" - -exec "$@" diff --git a/nginx.conf b/nginx.conf deleted file mode 100644 index 7bc9cf7..0000000 --- a/nginx.conf +++ /dev/null @@ -1,46 +0,0 @@ - -user nginx; -worker_processes 1; -error_log /var/log/nginx/error.log warn; -pid /var/run/nginx.pid; -events { - worker_connections 1024; -} - -http { - include /etc/nginx/mime.types; - default_type application/octet-stream; - log_format main '$remote_addr - $remote_user [$time_local] "$request" ' - '$status $body_bytes_sent "$http_referer" ' - '"$http_user_agent" "$http_x_forwarded_for"'; - access_log /var/log/nginx/access.log main; - sendfile on; - keepalive_timeout 65; - client_max_body_size 0; - - include /etc/nginx/conf.d/*.conf; - server { - listen 80; - server_name zimit localhost; - root /usr/share/nginx/html; - index index.html index.htm; - - gzip on; - gzip_proxied any; - gzip_types text/plain text/css application/json application/x-javascript application/javascript text/xml application/xml application/rss+xml text/javascript image/svg+xml application/vnd.ms-fontobject application/x-font-ttf font/opentype application/atom+xml text/yaml; - - location /api { - include uwsgi_params; - uwsgi_pass unix:///tmp/uwsgi.sock; - } - - location / { - try_files $uri $uri/ @rewrites; - } - - location @rewrites { - rewrite ^(.+)$ /index.html last; - } - } -} -daemon off;