Skip to content

Multiple ROOT_URL syntax/possible? #6397

Closed
@teotikalki

Description

@teotikalki

Is it possible to set multiple root urls? My use case involves multiple domains reverse proxied to the same backend vm.

The docs give this:
%(PROTOCOL)s://%(DOMAIN)s:%(HTTP_PORT)s/

The ()s part of that implies to me that there is a way for mutiple options. I cannot, however, figure out the syntax.
Tried: space separated, comma separated, both of those within round, square and curly brackets

Most attempts get 505 bad gateway.
ROOT_URL = https://(domain1/gitea,domain2/gitea)/
causes both domains to load text only. (Both domains load properly with just one domain in the root url but things like oauth2 logins won't work).

Edit:
ROOT_URL = https://(domain1,domain2)/gitea/
is the best so far, with both domains rendering properly. However, github login doesn't work for either. With ROOT_URL = https://domain1/gitea/ both domains render properly and github login works with domain1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/proposalThe new feature has not been accepted yet but needs to be discussed first.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions