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