Skip to content

Commit 61586af

Browse files
committed
fix: set api url from environment variable
1 parent be7a373 commit 61586af

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.changeset/tender-icons-cheat.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@quassel/frontend": patch
3+
---
4+
5+
Fix sed to set api url from environment variable

apps/frontend/.docker/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ set -xe
33

44
: "${API_URL?Define the api endpoint}"
55

6-
sed -i "s/\/\/REPLACE_WITH_API_URL/$API_URL/g" /usr/share/nginx/html/index.html
6+
sed -i "s|//REPLACE_WITH_API_URL|$API_URL|g" /usr/share/nginx/html/index.html
77

88
exec "$@"

docs/setup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ The following steps describe how to set up the application system:
115115
- `SESSION_SALT` to a 8byte random hex string with `openssl rand -hex 8`
116116
- `DATABASE_PASSWORD` set a more secure password for the database
117117
- **frontend**:
118-
- `API_URL` set to a escaped URL so it works with sed (e.g. "https:\\/\\/api.test.example.com")
118+
- `API_URL` point to the API endpoint (e.g. "https://api.test.example.com")
119119
1. Run application system
120120

121121
```bash

0 commit comments

Comments
 (0)