diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c1007e2..4c00208 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -55,14 +55,14 @@ The frontend is built with [SvelteKit](https://kit.svelte.dev) and written in Ty 3. Install the dependencies with `npm install` 4. Start the frontend with `npm run dev` -You're all set! - ### Reverse Proxy We use [Caddy](https://caddyserver.com) as a reverse proxy. You can use any other reverse proxy if you want but you have to configure it yourself. #### Setup Run `caddy run --config reverse-proxy/Caddyfile` in the root folder. +You're all set! + ### Testing We are using [Playwright](https://playwright.dev) for end-to-end testing. diff --git a/backend/.env.example b/backend/.env.example index 5185e92..9e439f3 100644 --- a/backend/.env.example +++ b/backend/.env.example @@ -1,6 +1,8 @@ APP_ENV=production PUBLIC_APP_URL=http://localhost +# /!\ If PUBLIC_APP_URL is not a localhost address, it must be HTTPS DB_PROVIDER=sqlite +# MAXMIND_LICENSE_KEY=fixme # needed for IP geolocation in the audit log SQLITE_DB_PATH=data/pocket-id.db POSTGRES_CONNECTION_STRING=postgresql://postgres:postgres@localhost:5432/pocket-id UPLOAD_PATH=data/uploads diff --git a/backend/internal/bootstrap/bootstrap.go b/backend/internal/bootstrap/bootstrap.go index 3d120ae..5c1a379 100644 --- a/backend/internal/bootstrap/bootstrap.go +++ b/backend/internal/bootstrap/bootstrap.go @@ -6,9 +6,10 @@ import ( ) func Bootstrap() { + initApplicationImages() + db := newDatabase() appConfigService := service.NewAppConfigService(db) - initApplicationImages() initRouter(db, appConfigService) } diff --git a/frontend/.env.example b/frontend/.env.example index 1e85d58..a6586fe 100644 --- a/frontend/.env.example +++ b/frontend/.env.example @@ -1,2 +1,3 @@ PUBLIC_APP_URL=http://localhost +# /!\ If PUBLIC_APP_URL is not a localhost address, it must be HTTPS INTERNAL_BACKEND_URL=http://localhost:8080