-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add git conflict handling to migration diff output
- Loading branch information
Showing
9 changed files
with
177 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -153,6 +153,10 @@ ckanext.querytool.allow_nav_bar = True | |
|
||
## Google Analytics | ||
|
||
ckanext.gtm.gtm_id = {{GTM_ID}} | ||
|
||
# OR | ||
|
||
googleanalytics.id = {{GA_ID}} | ||
googleanalytics.account = {{GA_ACCOUNT}} | ||
googleanalytics.username = {{GA_USERNAME}} | ||
|
@@ -189,11 +193,11 @@ ckanext.xloader.jobs_db.uri = postgresql://postgres:123456@jobs-db/postgres | |
|
||
#email_to = [email protected] | ||
#error_email_from = [email protected] | ||
# smtp.server = {{SMTP_SERVER}} | ||
# smtp.starttls = True | ||
# smtp.user = {{SMTP_USER}} | ||
# smtp.password = {{SMTP_PASSWORD}} | ||
# smtp.mail_from = [email protected] | ||
smtp.server = {{SMTP_SERVER}} | ||
smtp.starttls = True | ||
smtp.user = {{SMTP_USER}} | ||
smtp.password = {{SMTP_PASSWORD}} | ||
smtp.mail_from = {{SMTP_MAIL_FROM}} | ||
|
||
### | ||
|
||
|
@@ -207,9 +211,9 @@ ckan.harvest.mq.hostname = redis | |
ckan.harvest.mq.redis_db = 9 | ||
|
||
## Sentry settings | ||
# sentry_dsn = {{SENTRY_DSN}} | ||
# ckan.sentry.configure_logging = True | ||
# ckan.sentry.log_level = ERROR | ||
ckan.sentry.dsn = {{SENTRY_DSN}} | ||
ckan.sentry.configure_logging = True | ||
ckan.sentry.log_level = ERROR | ||
|
||
|
||
## Logging configuration | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
# Update the Traefik configuration file with secrets if not development mode | ||
if [ -f /traefik.dev.toml ]; then | ||
echo "Using development configuration" | ||
cp /traefik.dev.toml /traefik.toml | ||
else | ||
if [ ! -f /traefik.toml.template ]; then | ||
echo "Traefik template file does not exist, exiting" | ||
exit 1 | ||
fi | ||
if [ ! -f /traefik-secrets.sh ]; then | ||
echo "Traefik secrets file does not exist. Please run 'make secret' to generate it before starting the container" | ||
exit 1 | ||
fi | ||
if [ ! -f /templater.sh ]; then | ||
echo "Templater script does not exist, exiting" | ||
exit 1 | ||
fi | ||
|
||
echo "Traefik configuration file does not exist, templating" | ||
|
||
chmod +x /templater.sh | ||
./templater.sh /traefik.toml.template -f /traefik-secrets.sh > traefik.toml | ||
fi | ||
|
||
# Fix acme.json file permissions: set to 600 | ||
chmod 600 /acme.json | ||
|
||
# first arg is `-f` or `--some-option` | ||
if [ "${1#-}" != "$1" ]; then | ||
set -- traefik "$@" | ||
fi | ||
|
||
# if our command is a valid Traefik subcommand, let's invoke it through Traefik instead | ||
# (this allows for "docker run traefik version", etc) | ||
if traefik "$1" --help | grep -s -q "help"; then | ||
set -- traefik "$@" | ||
fi | ||
|
||
exec "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
debug = false | ||
defaultEntryPoints = ["http", "https"] | ||
|
||
[entryPoints] | ||
[entryPoints.http] | ||
address = ":80" | ||
|
||
[entryPoints.https] | ||
address = ":443" | ||
[entryPoints.https.tls] | ||
[entryPoints.api] | ||
address = ":8081" | ||
|
||
[api] | ||
entryPoint = "api" | ||
|
||
[ping] | ||
entryPoint = "http" | ||
|
||
[acme] | ||
email = "{{CERTIFICATE_EMAIL}}" | ||
storage = "/acme.json" | ||
entryPoint = "https" | ||
onHostRule = true | ||
|
||
[[acme.domains]] | ||
main = "{{CERTIFICATE_DOMAIN}}" | ||
|
||
[acme.httpChallenge] | ||
entryPoint = "http" | ||
|
||
[accessLog] | ||
|
||
[file] | ||
watch = true | ||
|
||
[backends] | ||
[backends.ckan] | ||
[backends.ckan.servers.server1] | ||
url = "http://nginx:8080" | ||
|
||
[frontends] | ||
[frontends.ckan] | ||
backend="ckan" | ||
passHostHeader = true | ||
[frontends.ckan.headers] | ||
SSLRedirect = true | ||
[frontends.ckan.routes.route1] | ||
rule = "Host:{{CERTIFICATE_DOMAIN}}" |