From be89194f6fb21ccbb398ff641ae3a39039436990 Mon Sep 17 00:00:00 2001 From: "Moritz Schubotz (physikerwelt)" Date: Mon, 24 Jul 2023 22:00:09 +0200 Subject: [PATCH] Set default TLD=localhost this enables reverse-proxy to function except for ssl certificates --- README.md | 12 +++++++++++- mediawiki/template.env | 6 +++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ab45ed1..bacfa93 100644 --- a/README.md +++ b/README.md @@ -60,6 +60,16 @@ etc, must be defined in the docker-compose files via docker labels for the services' containers. See the [docs](https://doc.traefik.io/traefik/). ### Optionally configure traefik locally + +By default, TLD points to localhost. That way one can access the portal at +https://portal.mardi4nfdi.de +and for example quickstatements via +https://quickstatements.portal.mardi4nfdi.localhost +. +Unfortunately SSL certificates are invalid as letsencrypt obviously cannot provide +local SSL certificates. + ## Start up the containers Start-up the containers from the docker-compose file for development: ``` diff --git a/mediawiki/template.env b/mediawiki/template.env index 9470aae..48ccbcb 100644 --- a/mediawiki/template.env +++ b/mediawiki/template.env @@ -119,4 +119,8 @@ GOOGLE_OPENID_SECRET=google-secret DEPLOYMENT_ENV=local ## Top Level Domain -TLD=de +## The ".localhost" TLD has traditionally been statically defined in host DNS implementations as having an A record pointing to the loop back IP address and is reserved for such use. Any other use would conflict with widely deployed code which assumes this use. +TLD=localhost + +RESTART=on-failure +