Skip to content

Commit

Permalink
https for gitpod
Browse files Browse the repository at this point in the history
  • Loading branch information
fitztrev committed Nov 15, 2023
1 parent c36cea9 commit 8629d55
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion conf/lila-ws.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ include "application"
mongo.uri = "mongodb://mongodb:27017/lichess?appName=lila-ws"
redis.uri = "redis://redis"

csrf.origin = "http://"${?LILA_DOMAIN}
csrf.origin = ${?SCHEME}"://"${?LILA_DOMAIN}
6 changes: 3 additions & 3 deletions conf/lila.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ user.password.bpass.secret = "9qEYN0ThHer1KWLNekA76Q=="
net.site.name = "lila"
net.domain = ${?LILA_DOMAIN}
net.socket.domains = [ ${?LILA_DOMAIN} ]
net.asset.base_url = "http://"${?LILA_DOMAIN}
net.asset.base_url = ${?SCHEME}"://"${?LILA_DOMAIN}
net.asset.base_url_internal = "http://nginx"
net.base_url = "http://"${?LILA_DOMAIN}
net.base_url = ${?SCHEME}"://"${?LILA_DOMAIN}

mongodb.uri = "mongodb://mongodb?appName=lila"
redis.uri = "redis://redis"
Expand All @@ -18,7 +18,7 @@ game.gifUrl = "http://lila_gif:6175"
search.enabled = true
search.endpoint = "http://lila_search:9673"

memo.picfit.endpointGet = "http://"${?PICFIT_DOMAIN}
memo.picfit.endpointGet = ${?SCHEME}"://"${?PICFIT_DOMAIN}
memo.picfit.endpointPost = "http://picfit:3001"

mailer.primary.mock = false
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ services:
networks:
- lila-network
environment:
- SCHEME=${SCHEME:-http}
- LILA_DOMAIN=${LILA_DOMAIN:-localhost:8080}
- PICFIT_DOMAIN=${PICFIT_DOMAIN:-localhost:3001}
volumes:
Expand All @@ -40,6 +41,7 @@ services:
networks:
- lila-network
environment:
- SCHEME=${SCHEME:-http}
- LILA_DOMAIN=${LILA_DOMAIN:-localhost:8080}
volumes:
- ./repos/lila-ws:/lila-ws
Expand Down
1 change: 1 addition & 0 deletions lila-docker
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
set -e

if [ ! -z "$GITPOD_WORKSPACE_ID" ]; then
export SCHEME=https
export LILA_DOMAIN=$(gp url 8080 | cut -c9-)
export PICFIT_DOMAIN=$(gp url 3001 | cut -c9-)
fi
Expand Down

0 comments on commit 8629d55

Please sign in to comment.