diff --git a/.env b/.env index d6bf0e3..de71db6 100644 --- a/.env +++ b/.env @@ -1,5 +1 @@ -TRAEFIK_APP_NAME=internal_proxy -TRAEFIK_NETWORK_NAME= - -URL_DOWNLOAD= -WEB_HOST= \ No newline at end of file +COMPOSE_PROJECT_NAME=internal_project \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index ff022c8..0c981af 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,14 +1,12 @@ version: '3' services: - internal_proxy: + internal_project: image: nginx volumes: - ./nginx.conf:/etc/nginx/templates/default.conf.template - ./html:/usr/share/nginx/html restart: always - environment: - - URL_DOWNLOAD=${URL_DOWNLOAD} networks: - internal_network diff --git a/nginx.conf b/nginx.conf index 55626e7..206dc85 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,30 +1,8 @@ server { - listen 80; - - gzip on; - gzip_min_length 1000; - gzip_proxied any; - gzip_comp_level 1; - gzip_types text/css text/javascript text/xml text/plain text/x-component application/javascript application/json application/xml application/rss+xml font/truetype font/opentype application/vnd.ms-fontobject image/svg+xml; - gzip_vary on; - gzip_disable "msie6"; - - include /etc/nginx/mime.types; - + listen 3000; location / { - # kill cache - add_header Last-Modified $date_gmt; - add_header Cache-Control 'no-store, no-cache'; - if_modified_since off; - expires off; - etag off; - - root /usr/share/nginx/html; - try_files $uri $uri/ /index.html =404; - } - - location /download { - proxy_pass $URL_DOWNLOAD; + root /usr/share/nginx/html; + try_files $uri $uri/ /index.html =404; } } \ No newline at end of file