gokapi: point index RedirectUrl at the app's own /admin (not Gokapi's GitHub)
Gokapi's bare root '/' redirects to RedirectUrl. It was the upstream default (github.com/Forceu/Gokapi), so the controller's 'Megnyitás' link (always the bare subdomain root) landed on Gokapi's GitHub instead of the app. Point it at https://${SUBDOMAIN}.${DOMAIN}/admin so the root + the controller link reach the Gokapi login/panel.
This commit is contained in:
@@ -25,7 +25,7 @@ services:
|
|||||||
- |
|
- |
|
||||||
if [ ! -f /app/config/config.json ]; then
|
if [ ! -f /app/config/config.json ]; then
|
||||||
echo "[felhom] first boot — seeding Gokapi config and claiming admin account"
|
echo "[felhom] first boot — seeding Gokapi config and claiming admin account"
|
||||||
printf '%s' '{"Authentication":{"Method":0,"SaltAdmin":"","SaltFiles":"","Username":"admin","Password":"","HeaderKey":"","OauthProvider":"","OAuthClientId":"","OAuthClientSecret":"","OauthUserScope":"","OauthGroupScope":"","OAuthRecheckInterval":12,"HeaderUsers":null,"OAuthGroups":[],"OauthUsers":[]},"Port":":53842","ServerUrl":"https://${SUBDOMAIN}.${DOMAIN}/","RedirectUrl":"https://github.com/Forceu/Gokapi/","PublicName":"Gokapi","DataDir":"data","DatabaseUrl":"sqlite://./data/gokapi.sqlite","ConfigVersion":21,"LengthId":15,"MaxFileSizeMB":102400,"MaxMemory":50,"ChunkSize":45,"MaxParallelUploads":4,"Encryption":{"Level":0,"Cipher":null,"Salt":"","Checksum":"","ChecksumSalt":""},"UseSsl":false,"PicturesAlwaysLocal":false,"SaveIp":false,"IncludeFilename":false}' > /app/config/config.json
|
printf '%s' '{"Authentication":{"Method":0,"SaltAdmin":"","SaltFiles":"","Username":"admin","Password":"","HeaderKey":"","OauthProvider":"","OAuthClientId":"","OAuthClientSecret":"","OauthUserScope":"","OauthGroupScope":"","OAuthRecheckInterval":12,"HeaderUsers":null,"OAuthGroups":[],"OauthUsers":[]},"Port":":53842","ServerUrl":"https://${SUBDOMAIN}.${DOMAIN}/","RedirectUrl":"https://${SUBDOMAIN}.${DOMAIN}/admin","PublicName":"Gokapi","DataDir":"data","DatabaseUrl":"sqlite://./data/gokapi.sqlite","ConfigVersion":21,"LengthId":15,"MaxFileSizeMB":102400,"MaxMemory":50,"ChunkSize":45,"MaxParallelUploads":4,"Encryption":{"Level":0,"Cipher":null,"Salt":"","Checksum":"","ChecksumSalt":""},"UseSsl":false,"PicturesAlwaysLocal":false,"SaveIp":false,"IncludeFilename":false}' > /app/config/config.json
|
||||||
/app/run.sh --deployment-password "$${GOKAPI_PASSWORD}"
|
/app/run.sh --deployment-password "$${GOKAPI_PASSWORD}"
|
||||||
fi
|
fi
|
||||||
exec /app/run.sh
|
exec /app/run.sh
|
||||||
|
|||||||
Reference in New Issue
Block a user