backend icon indicating copy to clipboard operation
backend copied to clipboard

404 on first admin email entry

Open Strehk opened this issue 1 year ago • 1 comments
trafficstars

When I open https://myurl.domain/admin for the first time, I can see the dashboard. But once I enter any email address and send it, i get an instant 404.

Same on localhost:8080 (or 8812 in my case, which is the port I've mapped 8080 to).

CleanShot 2024-06-08 at 12 03 09@2x

This is my docker-compose file:

version: "3.7"

services:
  server:
    image: ghcr.io/seatsurfing/backend
    restart: unless-stopped
    networks:
      sql:
      traefik_default:
      http:
    ports:
      - 8812:8080
    environment:
      POSTGRES_URL: "postgres://seatsurfing:${DB_PW}@db/seatsurfing?sslmode=disable"
      JWT_SIGNING_KEY: ${JWT_SIGNING_KEY}
      INIT_ORG_NAME: "DMUN"
      INIT_ORG_DOMAIN: "tolga.casa"
      INIT_ORG_USER: "admin"
      INIT_ORG_PASS: "admin"
      ORG_SIGNUP_MAX_USERS: 100
      PUBLIC_URL: "https://myurl.domain"
      FRONTEND_URL: "https://myurl.domain"
      BOOKING_UI_BACKEND: 'booking-ui:3001'
      ADMIN_UI_BACKEND: 'admin-ui:3000'
      PRINT_CONFIG: 1
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.raumbuchung-api.rule=Host(`myurl.domain`)"
      - "traefik.http.routers.raumbuchung-api.entrypoints=websecure"
      - "traefik.http.routers.raumbuchung-api.tls.certresolver=myresolver"

  booking-ui:
    image: ghcr.io/seatsurfing/booking-ui
    restart: unless-stopped
    environment:
      FRONTEND_URL: "https://myurl.domain"
    networks:
      http:

  admin-ui:
    image: ghcr.io/seatsurfing/admin-ui
    restart: unless-stopped
    environment:
      FRONTEND_URL: "https://myurl.domain"
    networks:
      http:

  db:
    image: postgres:16
    restart: unless-stopped
    networks:
      sql:
    volumes:
      - ${PERSISTED}/seatsurfers:/var/lib/postgresql/data
    environment:
      POSTGRES_PASSWORD: ${DB_PW}
      POSTGRES_USER: seatsurfing
      POSTGRES_DB: seatsurfing

networks:
  sql:
  traefik_default:
    external: true
  http:

Strehk avatar Jun 08 '24 10:06 Strehk

Not 100% sure since I've only started using this app myself but it might be what you set the below lines to. We started off with the defaults and then renamed it afterward. You might be able to do [email protected] and admin as the password.

INIT_ORG_NAME: "DMUN" INIT_ORG_DOMAIN: "tolga.casa"

llondono20 avatar Jul 02 '24 20:07 llondono20

It is normal that the preflight request returns a 404 response code for non-existing users. As you specified INIT_ORG_DOMAIN: "tolga.casa" in your compose file, you'll need to log in with [email protected] instead (as @llondono20 already stated - thanks!).

Hope this solves your issue.

virtualzone avatar Aug 31 '24 09:08 virtualzone