Skip to content

Commit

Permalink
build: Make container defaults localhost instead of production
Browse files Browse the repository at this point in the history
  • Loading branch information
redmushie committed Oct 1, 2023
1 parent cbe8b03 commit 0cbb8da
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ FROM nginx:1-alpine

# Default values.
ENV OPENSHOCK_NAME=LocalShock
ENV OPENSHOCK_URL=http://localhost:5001
ENV OPENSHOCK_API_URL=http://localhost:5002
ENV OPENSHOCK_SHARE_URL=https://shockl.ink
ENV OPENSHOCK_URL=http://webui.localhost:5002
ENV OPENSHOCK_API_URL=http://api.localhost:5001
ENV OPENSHOCK_SHARE_URL=

# Copy release artifacts (static JS and CSS bundles)
COPY dist /usr/share/nginx/html
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@ services:
environment:
- OPENSHOCK_NAME=LocalShock
- OPENSHOCK_URL=http://webui.localhost:5002
- OPENSHOCK_API_URL=http://api.localhost:80
- OPENSHOCK_SHARE_URL=http://local:5002/#/public/proxy/shares/links/
- OPENSHOCK_API_URL=http://api.localhost:5001
- OPENSHOCK_SHARE_URL=http://webui.localhost:5002/#/public/proxy/shares/links/
2 changes: 1 addition & 1 deletion src/globals/config/config.development.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const config = {
name: "ShockLink Dev",
apiUrl: "https://dev-api.shocklink.net/",
webUiUrl: "https://dev.shocklink.net/#/",
apiUrl: "https://dev-api.shocklink.net/",
shortUrl: "https://shockl.ink/",
}

Expand Down
2 changes: 1 addition & 1 deletion src/globals/config/config.production.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const config = {
name: "ShockLink",
apiUrl: "https://api.shocklink.net/",
webUiUrl: "https://shocklink.net/#/",
apiUrl: "https://api.shocklink.net/",
shortUrl: "https://shockl.ink/"
}

Expand Down
2 changes: 1 addition & 1 deletion startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ inject() {

# Inject our variables.
inject OPENSHOCK_NAME $OPENSHOCK_NAME
inject OPENSHOCK_URL $OPENSHOCK_URL
inject OPENSHOCK_API_URL $OPENSHOCK_API_URL
inject OPENSHOCK_WEBUI_URL $OPENSHOCK_WEBUI_URL
inject OPENSHOCK_SHARE_URL $OPENSHOCK_SHARE_URL

# Start nginx as normal.
Expand Down

0 comments on commit 0cbb8da

Please sign in to comment.