Forceu / Gokapi

Lightweight selfhosted Firefox Send alternative without public upload. AWS S3 supported.
GNU Affero General Public License v3.0
1.67k stars 68 forks source link

Infinite Redirect Loop #209

Open Aboitier opened 1 week ago

Aboitier commented 1 week ago

Hello,

Thanks for the awesome solution.

I get weird behavior when deploying the solution to my Kubernetes cluster : in /setup, right when clicking on "Next" at the end of setup, I get a NS_DOMAIN_SERVER (firefox) error and cannot access next page. Then I visit /admin and I get infinitely redirected from /admin to /login several times per second. It is when I open the network tab of my browser console that the error stops and I can access the app. Though I cannot disconnect because of this redirect.

Also, I observed that a call to uploadStatus is made every 3 seconds (see picture below).

image

I de-activated the SSL since it is taken care of by our certbot.

Would you have hints about this ? Or can I provide you with some more information maybe ?

Forceu commented 1 week ago

Thanks for your feedback! What authentication method are you using? And would you be able to post your configuration file (with censoring sensitive data)?

Aboitier commented 4 hours ago

Hi thanks for the quick answer and sorry for my late one.

I am using the classical login/password authent.

Here is my conf with censored data :

{
  "Authentication": {
    "Method": 0,
    "SaltAdmin": "xxxxxx",
    "SaltFiles": "xxxxxx",
    "Username": "xxxxxxx",
    "Password": "xxxxxxx",
    "HeaderKey": "",
    "OauthProvider": "",
    "OAuthClientId": "",
    "OAuthClientSecret": "",
    "OauthUserScope": "",
    "OauthGroupScope": "",
    "OAuthRecheckInterval": 12,
    "HeaderUsers": null,
    "OAuthGroups": [],
    "OauthUsers": []
  },
  "Port": ":53842",
  "ServerUrl": "https://mysubdomain.mydomain.eu/",
  "RedirectUrl": "https://mysubdomain.mydomain.eu/admin",
  "PublicName": "xxxxxxxx's secure file transfer platform",
  "DataDir": "data",
  "DatabaseUrl": "redis://redis.xxxxxxx:6379?prefix=gokapi_",
  "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
}