Skip to content

Commit

Permalink
Set default TLD=localhost
Browse files Browse the repository at this point in the history
this enables reverse-proxy to function except for ssl certificates
  • Loading branch information
physikerwelt committed Jul 24, 2023
1 parent b0dace3 commit be89194
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
<!--
Say we want to access quickstatements, wikibase and the traefik dashboard on our
local installation, via the local domains `quickstatements.local`, `portal.local`
and `traefik.local`. We need to tell traefik to route these addresses to the
Expand Down Expand Up @@ -104,7 +114,7 @@ services:
you can login to the traefik dashboard to check for routing errors at
https://traefik.local

-->
## Start up the containers
Start-up the containers from the docker-compose file for development:
```
Expand Down
6 changes: 5 additions & 1 deletion mediawiki/template.env
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit be89194

Please sign in to comment.