Enabling under Traefik example?
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 59.6k
- Forks
- 5.8k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 49
Description
Escalating this discussion to an issue and there is no replying over there.
The submitted example does not appear to work and it seems to be related to strict-origin-when-cross-origin
Has any one solved this?
Discussed in https://github.com/orgs/makeplane/discussions/3432
Originally posted by davekeeshan January 22, 2024
Is there an example of plane running under traefik.
I have a cloud server up and running with a wordpress instance and a few other small services already working. I want to add plane to this list.
I can start plane from docker compose (outside the setup.sh script) and it works is I ssh in and port forward to localhost.
However when I try and get plane to run under a subdomain i have if doesn't work. I do get some landing page, but it is just a spinning wheel. So far I have commented out the proxy part of the docker-compose.yml file and added these lines:
networks:
traefik:
external: true
And, which ${PLANE_DOMAIN} is an environment variable:
networks:
- traefik
labels:
# The labels are usefull for Traefik only
- "traefik.enable=true"
- "traefik.docker.network=traefik"
# Get the routes from http
- traefik.http.routers.plane.rule=Host(`${PLANE_DOMAIN}`)
- "traefik.http.routers.plane.entrypoints=web"
# Redirect these routes to https
- "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"
- "traefik.http.routers.plane.middlewares=redirect-to-https@docker"
# Get the routes from https
- traefik.http.routers.plane-secured.rule=Host(`${PLANE_DOMAIN}`)
- "traefik.http.routers.plane-secured.entrypoints=web-secure"
# Apply autentificiation with http challenge
- "traefik.http.routers.plane-secured.tls=true"
- "traefik.http.routers.plane-secured.tls.certresolver=myhttpchallenge"
This works in other micro services, but not here, what am I missing?
Have have also set
WEB_URL, CORS_ALLOWED_ORIGINS, NEXT_PUBLIC_DEPLOY_URL in the .env script to reflect my subdomain path
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the referenced docker-compose.yml, setup.sh, and .env settings, then review discussion 3432 for the existing Traefik context. Reproduce the deployment through the configured subdomain and verify the environment and routing behavior; done means Plane loads fully instead of showing a spinner, with the working configuration documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, docker-compose
- Domain
- devops, infrastructure
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100