Commit 9fbe130f by PLN (Algolia)

admin: dedupe backend endpoints — stale git.nech.pl pair made Sveltia refuse the config

parent 6b30975d
...@@ -5,10 +5,6 @@ site_url: https://me.nech.pl ...@@ -5,10 +5,6 @@ site_url: https://me.nech.pl
backend: backend:
name: gitlab name: gitlab
repo: pln/www repo: pln/www
# Self-hosted GitLab — both base_url and api_root must point at git.nech.pl
# (Sveltia does not infer them from the repo URL).
base_url: https://git.nech.pl
api_root: https://git.nech.pl/api/v4
# Auth: gate (api.nech.pl/gate/v1) is the auth service — magic email-code # Auth: gate (api.nech.pl/gate/v1) is the auth service — magic email-code
# login, then a postMessage handshake hands Sveltia the pln-cms token. # login, then a postMessage handshake hands Sveltia the pln-cms token.
# Rationale: Sveltia hardcodes Bearer (gitlab backend authScheme) and this # Rationale: Sveltia hardcodes Bearer (gitlab backend authScheme) and this
...@@ -16,14 +12,12 @@ backend: ...@@ -16,14 +12,12 @@ backend:
# git.nech.pl directly — gate's /gitlab/ proxy translates, and gate's # git.nech.pl directly — gate's /gitlab/ proxy translates, and gate's
# authorize page implements the Sveltia handshake natively (source-verified # authorize page implements the Sveltia handshake natively (source-verified
# against sveltia-cms shared/auth.js + sveltia-cms-auth outputHTML). # against sveltia-cms shared/auth.js + sveltia-cms-auth outputHTML).
# app_id kept only as history: direct GitLab OAuth (pkce) is unreachable on
# this GitLab version.
base_url: https://api.nech.pl base_url: https://api.nech.pl
auth_endpoint: gate/v1/oauth/authorize auth_endpoint: gate/v1/oauth/authorize
api_root: https://api.nech.pl/gate/v1/gitlab api_root: https://api.nech.pl/gate/v1/gitlab
# Paste the OAuth application ID from git.nech.pl (Admin area -> Applications; # app_id (d8696dc6…) from the git.nech.pl OAuth app is kept only as history:
# redirect URI https://me.nech.pl/admin/, "Confidential" unchecked, api scope). # direct GitLab OAuth (pkce) is unreachable on this GitLab version.
app_id: d8696dc65c5f2308ce16f3a0ddbcfb913915562917ad4647cfaa3ea843dee287 # app_id: d8696dc65c5f2308ce16f3a0ddbcfb913915562917ad4647cfaa3ea843dee287
media_folder: public/images/blog media_folder: public/images/blog
public_folder: /images/blog public_folder: /images/blog
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment