diff --git a/config/nginx.conf b/config/nginx.conf index 8763bbfc..2d813cc8 100644 --- a/config/nginx.conf +++ b/config/nginx.conf @@ -122,6 +122,8 @@ server { } location /goat/ { + rewrite ^/goat/(.*)$ /$1 break; + add_header 'Access-Control-Allow-Origin' '*' always; add_header 'Access-Control-Allow-Credentials' 'true' always; add_header 'Access-Control-Allow-Methods' '*' always; diff --git a/docker-compose.yml b/docker-compose.yml index 5e314772..6c82f9c8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -19,8 +19,6 @@ services: build: ./goat/ ports: - 31337:31337 - command: - herd: image: nginx:latest