From 5ebd46de77c6ab734b11ec7cad159fce0282ccb6 Mon Sep 17 00:00:00 2001 From: Adrian Amaglio Date: Sat, 26 Dec 2020 16:42:08 +0100 Subject: [PATCH] :fix: test path --- test/docker-compose.yml | 1 + test/nginx.conf | 30 +++++++++++++++--------------- 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/test/docker-compose.yml b/test/docker-compose.yml index b14d6fb..5f44aa3 100644 --- a/test/docker-compose.yml +++ b/test/docker-compose.yml @@ -26,3 +26,4 @@ services: - 8080:8080 volumes: - ./nginx.conf:/etc/nginx.conf + - ../:/usr/app diff --git a/test/nginx.conf b/test/nginx.conf index 81207af..0e2341b 100644 --- a/test/nginx.conf +++ b/test/nginx.conf @@ -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; + } } } -}