Skip to content

Commit

Permalink
build: move reverse proxying on port 80
Browse files Browse the repository at this point in the history
  • Loading branch information
Thechi2000 committed Aug 10, 2023
1 parent b4b7377 commit 77a2d5f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
5 changes: 1 addition & 4 deletions .devcontainer/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ services:
- type: bind
source: ../strapi
target: /app
ports:
# Expose strapi to port 8001
- "8001:8001"
depends_on:
- strapi-postgres

Expand Down Expand Up @@ -65,7 +62,7 @@ services:
volumes:
- "../caddy/Caddyfile.dev:/etc/caddy/Caddyfile"
ports:
- "3000:3000"
- "80:80"

volumes:
# Persist strapi database
Expand Down
2 changes: 1 addition & 1 deletion caddy/Caddyfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
auto_https off
}

http://localhost:3000 {
http://localhost:80 {
handle_path /strapi* {
reverse_proxy http://strapi:8001
}
Expand Down
2 changes: 1 addition & 1 deletion strapi/config/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ export default ({ env }) => ({
app: {
keys: env.array("APP_KEYS"),
},
url: env("URL", "http://localhost:3000/strapi"),
url: env("URL", "http://localhost/strapi"),
});

0 comments on commit 77a2d5f

Please sign in to comment.