New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reverse Proxy Not Working #65
Comments
did you try without the protocol? Caddy wants us to write domain like |
Yes, i tried. Actually i copied hasura's caddy part for CaddyFile and docker and replaced necessary params on a different server. https works in hasura but i tried both before posting here. Even ip gives 502. Only accessing via :9011 working for now |
Hi, did you find a solution for this? |
My solution to this challenge, I used docker for everything, hope it works for others. docker-compose.yml version: "3"
services:
http:
image: caddy:latest
container_name: http
restart: unless-stopped
ports:
- 80:80
- 443:443
networks:
- network
volumes:
- $PWD/Caddyfile:/etc/caddy/Caddyfile
- caddy_data:/data
- caddy_config:/config
db:
image: postgres:11.9-alpine
container_name: db
environment:
PGDATA: /var/lib/postgresql/data/pgdata
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
networks:
- network
restart: unless-stopped
volumes:
- db_data:/var/lib/postgresql/data
fusionauth:
image: fusionauth/fusionauth-app:latest
container_name: fusionauth
depends_on:
- db
- http
environment:
DATABASE_URL: ${DATABASE_URL}
DATABASE_ROOT_USERNAME: ${POSTGRES_USER}
DATABASE_ROOT_PASSWORD: ${POSTGRES_PASSWORD}
DATABASE_USERNAME: ${DATABASE_USERNAME}
DATABASE_PASSWORD: ${DATABASE_PASSWORD}
FUSIONAUTH_APP_MEMORY: ${FUSIONAUTH_APP_MEMORY}
FUSIONAUTH_APP_RUNTIME_MODE: production
SEARCH_TYPE: database
networks:
- network
restart: unless-stopped
volumes:
- fa_config:/usr/local/fusionauth/config
networks:
network:
volumes:
db_data:
fa_config:
caddy_data:
caddy_config:
Caddyfile
|
The solution to the problem is network. I read line by line with @allochi's solution and found this one thing extra Do take care that caddy and fusionauth are on same network |
@narayanpromax thanks so much for closing the issue after you found a solution. |
Reverse proxying via caddy doesn't work. It gives 502
CaddyFile Content As below
The text was updated successfully, but these errors were encountered: