mirror of
https://github.com/geoffsee/open-gsio.git
synced 2025-09-08 22:56:46 +00:00
Add session-proxy worker and deploy-all script
Introduce a new `session-proxy` worker with its configuration file. Update deployment scripts to include `deploy:session-proxy` and add a `deploy:all` script for streamlined deployment of all workers. Expand README with deployment instructions and usage of `pnpm` as an alternative to `bun`.
This commit is contained in:

committed by
Geoff Seemueller

parent
fb7031fc89
commit
46b912ba93
@@ -17,6 +17,12 @@ Fork of [geoff.seemueller.io](https://geoff.seemueller.io).
|
|||||||
4. Setup KV_STORAGE bindings for local development.
|
4. Setup KV_STORAGE bindings for local development.
|
||||||
5. In isolated shells, run `bun run server:dev` and `bun run client:dev`
|
5. In isolated shells, run `bun run server:dev` and `bun run client:dev`
|
||||||
|
|
||||||
|
> Note: it should be possible to use pnpm in place of bun
|
||||||
|
|
||||||
|
## Deploying
|
||||||
|
1. Find all instances of example.com in this repository and replace with your domain.
|
||||||
|
2. Run `wrangler deploy:all`
|
||||||
|
|
||||||
History
|
History
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@@ -11,6 +11,8 @@
|
|||||||
"deploy": "CI=true vite build && wrangler deploy --minify",
|
"deploy": "CI=true vite build && wrangler deploy --minify",
|
||||||
"deploy:email-service": "wrangler deploy --cwd workers/email",
|
"deploy:email-service": "wrangler deploy --cwd workers/email",
|
||||||
"deploy:analytics-service": "wrangler deploy --cwd workers/analytics",
|
"deploy:analytics-service": "wrangler deploy --cwd workers/analytics",
|
||||||
|
"deploy:session-proxy": "wrangler deploy --cwd workers/session-proxy",
|
||||||
|
"deploy:all": "pnpm deploy && pnpm deploy:session:proxy && pnpm deploy:email-service && pnpm deploy:analytics-service",
|
||||||
"tail": "wrangler tail",
|
"tail": "wrangler tail",
|
||||||
"tail:email-service": "wrangler tail -c workers/email/wrangler-email.toml",
|
"tail:email-service": "wrangler tail -c workers/email/wrangler-email.toml",
|
||||||
"tail:analytics-service": "wrangler tail -c workers/analytics/wrangler-analytics.toml",
|
"tail:analytics-service": "wrangler tail -c workers/analytics/wrangler-analytics.toml",
|
||||||
|
25
workers/session-proxy/wrangler.jsonc
Normal file
25
workers/session-proxy/wrangler.jsonc
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
{
|
||||||
|
"name": "session-proxy-open-gsio",
|
||||||
|
"main": "./index.ts",
|
||||||
|
"dev": {
|
||||||
|
"port": 3001
|
||||||
|
},
|
||||||
|
"compatibility_date": "2025-05-27",
|
||||||
|
"compatibility_flags": [
|
||||||
|
"nodejs_compat"
|
||||||
|
],
|
||||||
|
"preview_urls": false,
|
||||||
|
"workers_dev": false,
|
||||||
|
"routes": [
|
||||||
|
{
|
||||||
|
"custom_domain": true,
|
||||||
|
"pattern": "example.com"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"services": [
|
||||||
|
{
|
||||||
|
"binding": "WORKER_SITE",
|
||||||
|
"service": "open-gsio"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
Reference in New Issue
Block a user