Onto-Med / top-deployment

Deployment instructions and resources for the TOP Framework
https://onto-med.github.io/top-deployment/
MIT License
0 stars 3 forks source link

cannot deploy on localhost again #55

Closed KonradHoeffner closed 9 months ago

KonradHoeffner commented 9 months ago

The changes for https://github.com/Onto-Med/top-deployment/issues/23 seem to be reverted or there is a new issue, as Caddy will try to serve on HTTPS on localhost, which fails.

KonradHoeffner commented 9 months ago

I think the error is caused by 33d8b881c0f3c15431dc98402fa379a543bbe3aa because it removes the base URL from the Caddyfile:

-{$BASE_URL} {
+   rewrite /api /api/
    reverse_proxy /api/* backend:8080
+   rewrite /auth /auth/
    reverse_proxy /auth/* keycloak:8080
    reverse_proxy /* frontend:80

The current Caddyfile still has the closing brace but no base URL on top:

    rewrite /api /api/
    reverse_proxy /api/* backend:8080
    rewrite /auth /auth/      
    reverse_proxy /auth/* keycloak:8080
    reverse_proxy /* frontend:80

    header / Cache-Control no-cache
    header /api/* Cache-Control no-cache
}