Skip to content

Commit

Permalink
Merge pull request #75 from ModischFabrications/feature/cutsolver-v1.1.0
Browse files Browse the repository at this point in the history
Feature/cutsolver v1.1.0
  • Loading branch information
ModischFabrications authored Apr 19, 2024
2 parents add46b6 + 8b908ca commit 49958da
Show file tree
Hide file tree
Showing 17 changed files with 266 additions and 197 deletions.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Dev
DOMAIN_NAME=localhost
EMAIL_ADDRESS=[email protected]
VUE_APP_BACKEND_SOLVER_URL=http://localhost:8000/

# Prod
#DOMAIN_NAME=cutsolver.modisch.me
Expand Down
12 changes: 7 additions & 5 deletions Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@
}
}

# remove once everyone forgot about it
vps.modisch.me {
redir /cutsolver https://{$DOMAIN_NAME} permanent
}

{$DOMAIN_NAME} {
reverse_proxy /solve cutsolver
reverse_proxy cutsolver_frontend
Expand All @@ -28,3 +23,10 @@ vps.modisch.me {

respond /ping "pong at {$DOMAIN_NAME}"
}

# This could be managed by DNS!

# remove once everyone forgot about it
vps.modisch.me {
redir /cutsolver https://{$DOMAIN_NAME} permanent
}
2 changes: 1 addition & 1 deletion docker-compose-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
image: modischfabrications/cutsolver_frontend:latest
restart: unless-stopped
environment:
- VUE_APP_BACKEND_SOLVER_URL=https://${DOMAIN_NAME:?err}/solve
- VUE_APP_BACKEND_SOLVER_URL=https://${DOMAIN_NAME:?err}/
networks:
- webserver
- cutsolver
Expand Down
5 changes: 2 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
version: '3'
version: '3.3'

services:

cutsolver_frontend:
# use specific tags for a persistent reference
image: modischfabrications/cutsolver_frontend:latest
Expand All @@ -12,7 +11,7 @@ services:
- cutsolver
environment:
# point this to your backend host URL!
- VUE_APP_BACKEND_SOLVER_URL=http://localhost:8000/solve
- VUE_APP_BACKEND_SOLVER_URL=http://localhost:8000/

cutsolver:
image: modischfabrications/cutsolver:latest
Expand Down
Loading

0 comments on commit 49958da

Please sign in to comment.