https://gomplate.hairyhenderson.ca/datasources/#using-file-datasources
gomplate -d secret=/path/to/file -i 'let me tell you my secret: {{ datasource "secret" }}'
https://gomplate.hairyhenderson.ca/datasources/#using-file-datasources
gomplate -d secret=/path/to/file -i 'let me tell you my secret: {{ datasource "secret" }}'
In fact it could be a number of other issues, that are covered in google results for this problem.
But one of them could be just the redirect
config.
More: https://github.com/docker/distribution/blob/master/docs/configuration.md#redirect
in /etc/docker/registry/config.yml
storage:
Repository's sidebar menu: Settings > Project Settings > and mark "Trusted"
# ... | |
# In Django you can tell the Nginx to not cache with: | |
# https://docs.djangoproject.com/en/2.0/topics/http/decorators/#module-django.views.decorators.cache | |
# Microcache - Want 150 requests/sec to become 1200? | |
# | |
# https://www.nginx.com/blog/benefits-of-microcaching-nginx/ | |
# http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_cache | |
proxy_cache_path /tmp/cache keys_zone=cache:10m max_size=10g levels=1:2 inactive=600s max_size=100m; |
# https://github.com/douglasmiranda/dockerfiles/tree/master/caddy | |
# https://caddy.community/t/caddy-as-a-proxy-for-django/2164/2 | |
www.{$DOMAIN_NAME} { | |
redir https://example.com | |
} | |
{$DOMAIN_NAME} { | |
proxy / django:5000 { | |
header_upstream Host {host} |
# Based on https://www.pgday.ch/common/slides/2017_ver6_pgbouncer_20k_English.pdf | |
# Just connect to pgbouncer like you would connect to a postgres server | |
# In this case using the port 6432 | |
# Run pgbouncer as the user pgbouncer (su-exec) | |
[databases] | |
db1 = host=postgres port=5432 dbname=db1 | |
[pgbouncer] | |
listen_addr = * | |
listen_port = 6432 |
# Advanced config for NGINX | |
server_tokens off; | |
add_header X-XSS-Protection "1; mode=block"; | |
add_header X-Content-Type-Options nosniff; | |
# Redirect all HTTP traffic to HTTPS | |
server { | |
listen 80; | |
server_name www.domain.com domain.com; | |
return 301 https://$host$request_uri; |
while ! pg_isready > /dev/null 2> /dev/null; do echo "Connecting to postgres failed"; sleep 1; done |
$ pipenv install gconfigs # or pip install gconfigs | |
$ pipenv run python | |
>>> from gconfigs import envs, configs, secrets | |
>>> envs('HOME', default='/') | |
'/' | |
>>> configs.as_bool('DEBUG', default=False) | |
False | |
>>> configs('DATABASE_USER') |