beromir / Servas

A self-hosted bookmark management tool.
https://servas.app
GNU General Public License v3.0
578 stars 32 forks source link

Registration page 404 #90

Closed hxck closed 7 months ago

hxck commented 8 months ago

Currently deploying this via Dockge. Visiting the main page of the site after installation shows the login form (at http://192.168.50.204:8186/login), but changing the url to /register gives me a 404. This is my compose file:

version: "3"
services:
  servas:
    image: beromir/servas
    container_name: servas
    restart: unless-stopped
    environment:
      - APP_NAME=Bookmarks
      - APP_ENV=production
      - APP_KEY=keyhere
      - APP_DEBUG=false
      - APP_URL=http://192.168.50.204
      - SERVAS_ENABLE_REGISTRATION=false
      - DB_CONNECTION=sqlite
      - DB_DATABASE=/var/www/html/database/sqlite/servas.db
      - DB_FOREIGN_KEYS=true
    ports:
      - 8186:80
    volumes:
      - ./servas-db-sqlite:/var/www/html/database/sqlite
networks:
  backend:
    external: true

Logs show:

servas  | Starting Migration...
servas  | 
servas  |    INFO  Nothing to migrate.  
servas  | 
servas  | Creating caches...
servas  | 
servas  |    INFO  Configuration cached successfully.  
servas  | 
servas  | 
servas  |    INFO  Blade templates cached successfully.  
servas  | 
servas  | [06-Apr-2024 04:04:54] NOTICE: fpm is running, pid 18
servas  | [06-Apr-2024 04:04:54] NOTICE: ready to handle connections
servas  | 127.0.0.1 -  06/Apr/2024:04:05:00 +0000 "GET /index.php" 200
servas  | 127.0.0.1 -  06/Apr/2024:04:05:04 +0000 "GET /index.php" 404

Not really sure what I'm missing here. Any ideas?

Thanks.

beromir commented 8 months ago

You need to enable the registration page in the environment settings with SERVAS_ENABLE_REGISTRATION=true. Or you can create a user in the console with php artisan user:create.

hxck commented 7 months ago

Ah, I guess for some reason my brain tried to separate the admin registration with public registration even though it would make sense that they use the same mechanism, lol. Thanks man.