Skip to content

Commit 59a09dc

Browse files
authored
fixup confd
1 parent 3bc7df1 commit 59a09dc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rootfs/etc/confd/templates/config.inc.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ restful_urls = On
9797
; Example:
9898
; allowed_hosts = '["myjournal.tld", "anotherjournal.tld", "mylibrary.tld"]'
9999
{{- $url := getenv "OJS_BASE_URL" -}}
100-
{{- $cleaned := $url | replace "http://" "" | replace "https://" "" -}}
100+
{{- $cleaned := $url | replace $url "http://" "" -1 | replace $url "https://" "" -1 -}}
101101
{{- $host := index (split $cleaned "/") 0 -}}
102102
{{- $domain := index (split $host ":") 0 -}}
103103
allowed_hosts = '["localhost", "{{ $domain }}"]'

0 commit comments

Comments
 (0)