fixes
This commit is contained in:
parent
44aefef3dd
commit
b85c6e7b53
@ -10,9 +10,10 @@ services:
|
||||
nginx:
|
||||
image: nginx
|
||||
ports:
|
||||
- "8004:80"
|
||||
- "80:80"
|
||||
volumes:
|
||||
- ./nginx.conf:/etc/nginx/nginx.conf:ro
|
||||
- /home/meiri/alkator/nginx.conf:/etc/nginx/nginx.conf:ro
|
||||
- /home/meiri/alkator/:/alkator
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.alkatorweb.rule=Host(`zaloha.alkator.cz`)"
|
||||
|
16
nginx.conf
16
nginx.conf
@ -31,14 +31,6 @@ http {
|
||||
'"request_time": "$request_time" '
|
||||
'}';
|
||||
|
||||
server {
|
||||
listen 8080;
|
||||
server_name localhost;
|
||||
location = /stub_status{
|
||||
stub_status;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
|
||||
@ -50,14 +42,14 @@ http {
|
||||
|
||||
location /api{
|
||||
proxy_read_timeout 300;
|
||||
proxy_pass http://localhost:8005;
|
||||
proxy_pass http://api:8005;
|
||||
}
|
||||
location /api/upload_files{
|
||||
client_max_body_size 100M;
|
||||
proxy_pass http://localhost:8005;
|
||||
proxy_pass http://api:8005;
|
||||
}
|
||||
location /admin {
|
||||
proxy_pass http://localhost:8005;
|
||||
proxy_pass http://api:8005;
|
||||
}
|
||||
location /static {
|
||||
root /alkator;
|
||||
@ -74,6 +66,4 @@ http {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
include sites-enabled/*;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user