I’m trying to replace my nginx server with caddy to server my ui service. I tried to add everything I have nginx.conf to my caddyfile. When I deploy my changes to QA, the browser returns no response for me. I can’t see where the error can be or related to what. I’m using docker to build my app and set the caddy server up
2. Error messages and/or full log output:
3. Caddy version:
4. How I installed and ran Caddy:
a. System environment:
PASTE OVER THIS, BETWEEN THE ``` LINES.
Please use the preview pane to ensure it looks nice.
c. Service/unit/compose file:
# Stage 1
FROM node:18 as react-build
COPY . ./
RUN curl -u packurl
RUN yarn build
# Stage 2 - the production environment
COPY --from=react-build /app/dist /usr/share/caddy/html
COPY Caddyfile /etc/caddy/Caddyfile
CMD ["caddy", "run", "--config", "/etc/caddy/Caddyfile"]
You haven’t shown in what way it’s not working. Enable the debug global option, and show Caddy’s logs. Caddy writes its logs to stdout, so you can run docker logs <your-caddy-container-id> to get them.
The requests made with curl are returning the expected data, health is up, prometheus is working, and html file is returned. The problem is with browser that shows no UI. Also when I deploy I noticed that there is no request is made to the server. Could the problem be with the host name or the port I’m using?