Skip to content
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

bug: Page 404 #6554

Closed
37809874 opened this issue Sep 6, 2024 · 3 comments
Closed

bug: Page 404 #6554

37809874 opened this issue Sep 6, 2024 · 3 comments
Labels
pending-verification Something is still under investigation

Comments

@37809874
Copy link

37809874 commented Sep 6, 2024

I have defined the HTTPS domain name in my compose file

  • ENDPOINT
  • ADMIN_ENDPOINT
    And it has already been added to my nginx configuration file
    location / {
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto https;
    proxy_pass http://127.0.0.1:3001 ;
    }
    But when I access the domain name, it is blank F12 and I see 404. Why is this
    image
@37809874 37809874 added the bug Something isn't working label Sep 6, 2024
@37809874
Copy link
Author

37809874 commented Sep 6, 2024

This compose file is for demonstration only, do not use in prod.

version: "3.9"
services:
app:
depends_on:
postgres:
condition: service_healthy
image: svhd/logto:${TAG-latest}
entrypoint: ["sh", "-c", "npm run cli db seed -- --swe && npm start"]
ports:
- 3001:3001
- 3002:3002
environment:
- DB_URL=postgres://postgres:p0stgr3s@postgres:5432/logto
# Mandatory for GitPod to map host env to the container, thus GitPod can dynamically configure the public URL of Logto;
# Or, you can leverage it for local testing.
- ENDPOINT=https://domain(This is the complete domain name)
- ADMIN_ENDPOINT=https://domain(This is the complete domain name)
postgres:
image: postgres:14-alpine
user: postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: p0stgr3s
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5

This is my complete file
Do I need to add any configurations?

@charIeszhao
Copy link
Member

https://docs.logto.io/docs/recipes/deployment/#reverse-proxy
Make sure you check this one out.

@charIeszhao charIeszhao added pending-verification Something is still under investigation and removed bug Something isn't working labels Sep 18, 2024
@charIeszhao
Copy link
Member

Closing the ticket due to inactivity for more than 3 weeks. Feel free to reopen if necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending-verification Something is still under investigation
Development

No branches or pull requests

2 participants