Show Google sign-in even when site.json isn't deployed
/api/auth/providers read site.json to build Google's return address, and the deploy copies server/ into /srv/ngu-api without site.json, so it threw and the login page hid the button. Whether Google is on now depends only on the client id and secret; a missing return address is logged when a sign-in starts, naming GOOGLE_REDIRECT_URI and SITE_CONFIG. The docs say how the server is actually deployed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
d4b39251d9
commit
e932ee3007
4 changed files with 35 additions and 6 deletions
|
|
@ -29,8 +29,11 @@ with it off it blocks everything.
|
|||
## Production setup
|
||||
|
||||
1. The API needs to find two files. Both default to the repo layout
|
||||
(`site.json` at the root, the build in `dist/`); set them on the
|
||||
`ngu-api` unit if the deploy puts them elsewhere:
|
||||
(`site.json` at the root, the build in `dist/`), which isn't how the
|
||||
server is deployed: the deploy copies `server/` into `/srv/ngu-api`,
|
||||
so neither file is next to it. Copy `site.json` there with each
|
||||
deploy (eg. rsync it to `/srv/ngu-api/site.json`) and set both on the
|
||||
`ngu-api` unit:
|
||||
|
||||
```ini
|
||||
[Service]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue