Skip to content

Commit ec9f9c3

Browse files
committed
Move SWAGGER_JSON_URL out of .env
1 parent ad9822f commit ec9f9c3

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

compose.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ services:
4242
swagger-ui:
4343
image: swaggerapi/swagger-ui:v5.20.1
4444
environment:
45-
SWAGGER_JSON_URL: ${SWAGGER_JSON_URL:?}
45+
SWAGGER_JSON_URL: http://localhost:${CADDY_HTTP_PORT:?}/rest/
4646
depends_on:
4747
- postgrest
4848

@@ -56,7 +56,7 @@ services:
5656
swagger-ui:
5757
condition: service_started
5858
ports:
59-
- ${CADDY_PORT:?}:80
59+
- ${CADDY_HTTP_PORT:?}:80
6060
- ${CADDY_HTTPS_PORT:?}:443
6161
environment:
6262
CADDY_AUTO_HTTPS: $CADDY_AUTO_HTTPS

docs/gettingstarted.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,8 @@ cp example.env .env
5454
This `.env` file is used to configure:
5555

5656
- **Secrets** – Passwords, keys, etc.
57-
- **Ports** – Configured with env vars so you can adjust the exposed ports
58-
(specifically, Caddy's) depending on application (you may bring up multiple
59-
for development) or environment.
57+
- **Ports** – Adjust the exposed ports (specifically, Caddy's) depending on
58+
environment or application (you may bring up multiple for development).
6059

6160
> ⚠️ Important: This file is for local development only. Never store real
6261
> secrets in version control or production. Use CI/CD environment variables or

example.env

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,7 @@ PGPASS=pass
88
PGRST_JWT_SECRET=your-ultra-secret-jwt-key-123456 # must be at least 32 chars
99
PGRST_AUTHENTICATOR_PASS=pass
1010

11-
# Swagger UI
12-
SWAGGER_JSON_URL=http://localhost:8000/rest/
13-
1411
# Caddy
15-
CADDY_PORT=8000
12+
CADDY_HTTP_PORT=8000
1613
CADDY_HTTPS_PORT=443
1714
CADDY_AUTO_HTTPS=off

0 commit comments

Comments
 (0)