remove all unnecessary lines
This commit is contained in:
parent
59059af5d6
commit
ff4e11cf78
6
.env
6
.env
@ -1,5 +1 @@
|
|||||||
TRAEFIK_APP_NAME=internal_proxy
|
COMPOSE_PROJECT_NAME=internal_project
|
||||||
TRAEFIK_NETWORK_NAME=
|
|
||||||
|
|
||||||
URL_DOWNLOAD=
|
|
||||||
WEB_HOST=
|
|
||||||
@ -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
|
||||||
|
|
||||||
|
|||||||
28
nginx.conf
28
nginx.conf
@ -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;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user