Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weblate allowed_hosts multiple domains #4335

Closed
tregin opened this issue Aug 18, 2020 · 6 comments
Closed

Weblate allowed_hosts multiple domains #4335

tregin opened this issue Aug 18, 2020 · 6 comments
Labels
question This is more a question for the support than an issue.

Comments

@tregin
Copy link

tregin commented Aug 18, 2020

Hey
I'm currently deploying weblate using OPENSHIFT TEMPLATE and would like to add two domain names to the WEBLATE_ALLOWED_HOSTS parameters but when I do it in a format like this:

- name: WEBLATE_ALLOWED_HOSTS
  value: "['domain1.com', 'domain2.com']"

I have tried several formats like:

- value: "['domain1.com', 'domain2.com']"
- value: "[domain1.com, domain2.com]"
- value: '["domain1.com", "domain2.com"]'

but always unsuccessful

this doesn't work and I'm getting error when I try to access weblate
"
Bad request
We’re sorry but something appears to be wrong with the request you made.
"

when I have the parameter set only for one domain it works;

            - name: WEBLATE_ALLOWED_HOSTS
              value: "domain1"

Can you please share the correct syntax.

@tregin tregin added the question This is more a question for the support than an issue. label Aug 18, 2020
@github-actions
Copy link

This issue looks like a support question. We try to answer these reasonably fast, but in case you are looking for faster resolution, please consider purchasing support subscription and make Weblate stronger.

@nijel
Copy link
Member

nijel commented Aug 18, 2020

@tregin
Copy link
Author

tregin commented Aug 18, 2020

yes I did that and even tried with settting:

            - name: WEBLATE_ALLOWED_HOSTS
              value: "example.com, example-2.com"

the result is the first domain "example.com" works... but the second doesn't.
I have even tried adding the second domain to the Sites under admin area but no luck...

@nijel
Copy link
Member

nijel commented Aug 18, 2020

I think the space should not be there.

@tregin
Copy link
Author

tregin commented Aug 19, 2020

thanks that did the trick! :)

@tregin tregin closed this as completed Aug 19, 2020
@github-actions
Copy link

The issue you have reported seems to be resolved now.

  • In case you see a similar problem, please open a separate issue.
  • If you are happy with the outcome, consider supporting Weblate by donating.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question This is more a question for the support than an issue.
Projects
None yet
Development

No branches or pull requests

2 participants