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
|
||||
TRAEFIK_NETWORK_NAME=
|
||||
|
||||
URL_DOWNLOAD=
|
||||
WEB_HOST=
|
||||
COMPOSE_PROJECT_NAME=internal_project
|
||||
@ -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
|
||||
|
||||
|
||||
24
nginx.conf
24
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;
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user