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.
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.