Skip to content

Commit

Permalink
make goat discord api reachable through nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickwieth committed May 27, 2024
1 parent 96f919a commit b591908
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions config/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 0 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ services:
build: ./goat/
ports:
- 31337:31337
command:


herd:
image: nginx:latest
Expand Down

0 comments on commit b591908

Please sign in to comment.