Skip to content

Commit

Permalink
feat(boilerplate): add reverse proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
k1eu committed Jul 5, 2024
1 parent 976b8aa commit 86c3367
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
15 changes: 15 additions & 0 deletions examples/common_nestjs_remix/apps/reverse-proxy/Caddyfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
api.guidebook.localhost {
reverse_proxy localhost:3000
}

app.guidebook.localhost {
reverse_proxy localhost:5173
}

mailbox.guidebook.localhost {
reverse_proxy localhost:8025
}

storage.articulate.localhost {
reverse_proxy localhost:8069
}
6 changes: 6 additions & 0 deletions examples/common_nestjs_remix/apps/reverse-proxy/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "guidebook_development_reverse_proxy",
"scripts": {
"dev": "caddy run"
}
}
7 changes: 7 additions & 0 deletions examples/common_nestjs_remix/apps/reverse-proxy/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Reverse Proxy

This allows us for custom domains and out of the box https.

Installation can be found here: https://caddyserver.com/docs/install#homebrew-mac
After installing you must first run it by hand in this folder for configuration.
From this point it will automatcally start with Turborepo's `pnpm dev`

0 comments on commit 86c3367

Please sign in to comment.