@@ -102,7 +102,7 @@ restful_urls = On
102102{{- $cleaned := replace $temp " http://" " " -1 -}}
103103
104104{{- $host := index (split $cleaned " /" ) 0 -}}
105- {{- $domain := index (split $host " :" ) 0 - }}
105+ {{ $domain := index (split $host " :" ) 0 }}
106106allowed_hosts = '[" localhost" , " {{ $domain }}" ]'
107107
108108
@@ -431,45 +431,13 @@ page_links = 10
431431[captcha]
432432
433433; Whether or not to enable ReCaptcha
434- recaptcha = off
435-
436- ; Public key for reCaptcha (see http://www.google.com /recaptcha)
437- recaptcha_public_key = your_public_key
438-
439- ; Private key for reCaptcha (see http://www.google.com /recaptcha)
440- recaptcha_private_key = your_private_key
441-
442- ; Whether or not to use Captcha on user registration
434+ recaptcha = {{ if getenv " RECAPTCHA_PUBLIC_KEY" }}on{{ else }}off{{ end }}
435+ recaptcha_public_key = {{ getenv " RECAPTCHA_PUBLIC_KEY" }}
436+ recaptcha_private_key = {{ getenv " RECAPTCHA_PRIVATE_KEY" }}
443437captcha_on_register = on
444-
445- ; Whether or not to use Captcha on user login
446438captcha_on_login = on
447-
448- ; Validate the hostname in the ReCaptcha response
449439recaptcha_enforce_hostname = Off
450440
451- ; ALTCHA is a free and open-source alternative to Google's ReCaptcha
452- ; The options below will manage all the required configurations used to
453- ; work with ALTCHA instead of ReCaptcha on system
454-
455- ; Whether or not to enable ALTCHA
456- altcha = off
457-
458- ; Private key for ALTCHA
459- altcha_hmackey = 'Example key'
460-
461- ; Whether or not to use ALTCHA on user registration
462- altcha_on_register = on
463-
464- ; Whether or not to use ALTCHA on user login
465- altcha_on_login = on
466-
467- ; Whether or not to use ALTCHA on user lost password
468- altcha_on_lost_password = on
469-
470- ; The quantity of encryption cycles performed by the ALTCHA system
471- altcha_encrypt_number = 10000
472-
473441;;;;;;;;;;;;;;;;;;;;;
474442; External Commands ;
475443;;;;;;;;;;;;;;;;;;;;;
0 commit comments