-
Notifications
You must be signed in to change notification settings - Fork 14
/
.env.liquid
80 lines (75 loc) · 3.31 KB
/
.env.liquid
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
[public]
{% if context['ENABLE_SSL'] == 'true' %}
NEXT_PUBLIC_WEBUI_HOST=https://{{ context["HOSTNAME"] }}
{% else %}
NEXT_PUBLIC_WEBUI_HOST=http://{{ context["HOSTNAME"] }}
{% endif %}
PROJECT_URL={{ context.PROJECT_URL }}
[session]
SESSION_PASSWORD={{ context.SESSION_PASSWORD }}
SESSION_COOKIE_NAME={{ context.SESSION_COOKIE_NAME }}
NODE_TLS_REJECT_UNAUTHORIZED={{ context.NODE_TLS_REJECT_UNAUTHORIZED }}
[gateway]
RUCIO_AUTH_HOST={{ context.RUCIO_AUTH_HOST }}
RUCIO_HOST={{ context.RUCIO_HOST }}
[oidc]
OIDC_ENABLED={{ context.OIDC_ENABLED }}
{% if context.OIDC_PROVIDERS %}
OIDC_PROVIDERS={{ context.OIDC_PROVIDERS }}
{% assign oidc_providers = context.OIDC_PROVIDERS | split: "," | strip %}
{% for provider in oidc_providers %}
{% assign providerName = provider | upcase | strip %}
{% assign client_id = 'OIDC_PROVIDER_' | append: providerName | append: "_CLIENT_ID" %}
{% assign client_secret = 'OIDC_PROVIDER_' | append: providerName | append: "_CLIENT_SECRET" %}
{% assign authorization_url = "OIDC_PROVIDER_" | append: providerName | append: "_AUTHORIZATION_URL" %}
{% assign token_url = "OIDC_PROVIDER_" | append: providerName | append: "_TOKEN_URL" %}
{% assign redirect_url = "OIDC_PROVIDER_" | append: providerName | append: "_REDIRECT_URL" %}
{% assign userinfo_url = "OIDC_PROVIDER_" | append: providerName | append: "_USERINFO_URL" %}
{% assign userinfo_url = "OIDC_PROVIDER_" | append: providerName | append: "_REFRESH_TOKEN_URL" %}
{% if context[client_id] %}
OIDC_PROVIDER_{{ provider | upcase | strip }}_CLIENT_ID={{ context[client_id]}}
{% endif %}
{% if context[client_secret] %}
OIDC_PROVIDER_{{ provider | upcase | strip }}_CLIENT_SECRET={{ context[client_secret]}}
{% endif %}
{% if context[authorization_url] %}
OIDC_PROVIDER_{{ provider | upcase | strip }}_AUTHORIZATION_URL={{ context[authorization_url]}}
{% endif %}
{% if context[token_url] %}
OIDC_PROVIDER_{{ provider | upcase | strip }}_TOKEN_URL={{ context[token_url]}}
{% endif %}
{% if context[redirect_url] %}
OIDC_PROVIDER_{{ provider | upcase | strip }}_REDIRECT_URL={{ context[redirect_url]}}
{% endif %}
{% if context[userinfo_url] %}
OIDC_PROVIDER_{{ provider | upcase | strip }}_USERINFO_URL={{ context[userinfo_url]}}
{% endif %}
{% if context[refresh_token_url] %}
OIDC_PROVIDER_{{ provider | upcase | strip }}_REFRESH_TOKEN_URL={{ context[refresh_token_url]}}
{% endif %}
{% endfor %}
{% endif %}
[multi_vo]
MULTIVO_ENABLED={{ context.MULTIVO_ENABLED }}
VO_DEFAULT={{ context.VO_DEFAULT }}
VO_LIST={{ context.VO_LIST }}
{% assign vos = context.VO_LIST | split: "," %}
{% for vo in vos%}
{% assign voName = vo | upcase | strip %}
{% assign name = 'VO_' | append: voName | append: "_NAME" %}
{% assign logo = 'VO_' | append: voName | append: "_LOGO" %}
{% assign oidc_enabled = 'VO_' | append: voName | append: "_OIDC_ENABLED" %}
{% assign oidc_providers = 'VO_' | append: voName | append: "_OIDC_PROVIDERS" %}
{% if context[name] %}
VO_{{ vo | upcase | strip }}_NAME={{ context[name] }}
{% endif %}
{% if context[logo] %}
VO_{{ vo | upcase | strip }}_LOGO={{ context[logo] }}
{% endif %}
{% if context[oidc_enabled] %}
VO_{{ vo | upcase | strip }}_OIDC_ENABLED={{ context[oidc_enabled] }}
{% endif %}
{% if context[oidc_providers] %}
VO_{{ vo | upcase | strip }}_OIDC_PROVIDERS={{ context[oidc_providers] }}
{% endif %}
{% endfor %}