Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request : Local use only #38

Open
verticalhost opened this issue Jan 5, 2023 · 2 comments
Open

Request : Local use only #38

verticalhost opened this issue Jan 5, 2023 · 2 comments
Labels
needs-info Needs information question

Comments

@verticalhost
Copy link

Is it possible to redo the script but only locally compatible.
So it would be without external use.
The reason is that I use something much more flexible CloudFlare ZeroTrust Tunel.
I can't get it to work via my server at home since it seems you are using traefik.

@Censseo
Copy link

Censseo commented Feb 23, 2023

the whole idea of this script is to configure traefik to expose self hosted services. What is the point of asking removing traefik??

@jfroment
Copy link
Owner

One of the purposes of this script is to have an only entrypoint for your selfhosted services, in an automated way.
Everything goes through Traefik reverse proxy (port 443 or 80 if you configure it for httpOnly - see the documentation).
On this part, it should work even with CloudFlare Tunnel.

The problem here is (I assume) the certificates.
Traefik also handles them for their generation and renewal, but if you manually disable this feature it should maybe work.
Try to disable (=comment) the following YAML parts:

  • from traefik/traefik.yaml:
    • certificateResolvers
    • entryPoints.secure
  • from traefik/custom/tls.yaml:
    • tls (so all the file)
  • from traefik/custom/middlewares.yaml:
    • http.middlewares.securty-headers
    • http.middlewares.redirect-to-https (leaving only common-auth middleware)
  • from services/traefik.yaml:
    • command
    • port 443:443 only

You should be left with an http-only Traefik, and then you can tunnel through Cloudflare any mapping, but going through Traefik using custom subdomains.

Please tell me how it goes.

@jfroment jfroment added question needs-info Needs information labels Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-info Needs information question
Projects
None yet
Development

No branches or pull requests

3 participants