:fix: test path

This commit is contained in:
Adrian Amaglio 2020-12-26 16:42:08 +01:00
parent 69dd13af4d
commit 5ebd46de77
2 changed files with 16 additions and 15 deletions

View File

@ -26,3 +26,4 @@ services:
- 8080:8080
volumes:
- ./nginx.conf:/etc/nginx.conf
- ../:/usr/app

View File

@ -19,20 +19,20 @@ http {
types_hash_bucket_size 128;
gzip on;
server {
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, POST, DELETE, OPTIONS';
listen 8080;
location /admin {
root /home/ilya/git/contact_mailer/adminer;
index index.html;
}
location / {
root /home/ilya/git/contact_mailer/test;
index test.html;
}
location /api/ {
proxy_pass http://mailer:8080/;
server {
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, POST, DELETE, OPTIONS';
listen 8080;
location /admin {
root /usr/app/adminer;
index index.html;
}
location / {
root /usr/app/test;
index test.html;
}
location /api/ {
proxy_pass http://mailer:8080;
}
}
}
}