Hello everyone! I got a question regarding the en...
# ory-selfhosting
g
Hello everyone! I got a question regarding the env variables and string arrays> I have oathkeeper settings for CORS origins:
Copy code
serve:  
  proxy:  
    cors:  
      enabled: true  
      allowed_origins:  
        - <http://127.0.0.1>
        - <http://dev.local>
        - <http://staging.domain.com>
How to represent these settings with ENV variables?
d
it should be like this:
Copy code
SERVE_PROXY_CORS_ALLOWED_ORIGINS_0=<http://127.0.0.1>
SERVE_PROXY_CORS_ALLOWED_ORIGINS_1=<http://dev.local>
you essentially just manually index the list
s
perhaps this technique is depreciated but someone kindly pointed out to me that the form also works. SERVE_PROXY_CORS_ALLOWED_ORIGINS==http://127.0.0.1,http://dev.local This is a little easier when trying to communicate from the environment via a docker compose file as your compose file does not need to know how many URLs there are.