Skip to content

Settings

Settings

LemonTree Web Settings can be changed and set in appsetting.json file. The file can be found using the path /app/apsetting.json.

Security

Key Default Description
AllowUploads false Enables file uploads.
AllowedHosts Empty List of hosts from which files may be downloaded/uploaded.
OnlyAllowUploadsOverHttps true Restricts file uploads to HTTPS connections.
FileUploadDirectory Empty Directory used to store downloaded/session files.
AutoDeleteDownloadedFiles false Automatically deletes downloaded files after they are no longer required.

Token Handling (Authentication → TokenPassthrough)

Key Default Description
Enabled false Enables authentication token passthrough.
OnlyAllowPasstroughOverHttps true Restricts token passthrough to HTTPS connections.
AllowedHosts Empty List of hosts to which authentication tokens may be passed through.

Set following parameters for token handling:

  • Security:
    • AllowedHosts for downloading (should include the ones from tokenpassthrough)
    • AllowedUploads: true
    • FileUploadDirectory: set to absolute path in your container
  • Authentication:TokenPassthrough
    • Enabled: true
    • AllowedHosts

For example:

"Security": {
            "AllowUploads": "true",
            "AllowedHosts": [ "customers.lieberlieber.com", "nexus.lieberlieber.com", "gitlab.com", "raw.githubusercontent.com" ],
            "OnlyAllowUploadsOverHttps": "true",
            "FileUploadDirectory": "/app/uploads",
            "AutoDeleteDownloadedFiles": "true"
        },
        "Authentication": {
            "TokenPassthrough": {
                "Enabled": "true",
                "OnlyAllowPasstroughOverHttps": "false",
                "AllowedHosts": [ "customers.lieberlieber.com", "nexus.lieberlieber.com", "gitlab.com", "raw.githubusercontent.com" ]
            }
        }