remove all unnecessary lines

This commit is contained in:
vchikalkin 2024-07-14 21:21:51 +03:00
parent 59059af5d6
commit ff4e11cf78
3 changed files with 5 additions and 33 deletions

6
.env
View File

@ -1,5 +1 @@
TRAEFIK_APP_NAME=internal_proxy COMPOSE_PROJECT_NAME=internal_project
TRAEFIK_NETWORK_NAME=
URL_DOWNLOAD=
WEB_HOST=

View File

@ -1,14 +1,12 @@
version: '3' version: '3'
services: services:
internal_proxy: internal_project:
image: nginx image: nginx
volumes: volumes:
- ./nginx.conf:/etc/nginx/templates/default.conf.template - ./nginx.conf:/etc/nginx/templates/default.conf.template
- ./html:/usr/share/nginx/html - ./html:/usr/share/nginx/html
restart: always restart: always
environment:
- URL_DOWNLOAD=${URL_DOWNLOAD}
networks: networks:
- internal_network - internal_network

View File

@ -1,30 +1,8 @@
server { server {
listen 80; listen 3000;
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;
location / { location / {
# kill cache root /usr/share/nginx/html;
add_header Last-Modified $date_gmt; try_files $uri $uri/ /index.html =404;
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;
} }
} }