There was an error while loading. Please reload this page.
2 parents 594956f + 03687b0 commit 0a99d51Copy full SHA for 0a99d51
nginx.tmpl
@@ -48,6 +48,13 @@ upstream {{ $domain }} {
48
}
49
server {
50
server_name {{ $domain }};
51
+{{ range $_, $value := $container -}}
52
+{{ range $key, $value := $value.Env -}}
53
+ {{ if (eq (index (split $key "_GEN_") 0) "NGINX") }}
54
+ {{ replace $key "NGINX_GEN_" "" 1 }} {{ $value }};
55
+ {{- end }}
56
+{{- end }}
57
58
listen 80;
59
access_log /var/log/nginx/access.log vhost;
60
location / {
0 commit comments