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

[Feature Request] Cockpit example #25

Open
arvigeus opened this issue Sep 28, 2021 · 0 comments
Open

[Feature Request] Cockpit example #25

arvigeus opened this issue Sep 28, 2021 · 0 comments

Comments

@arvigeus
Copy link

arvigeus commented Sep 28, 2021

So far I figured out it needs extra-hosts in docker-compose :

extra_hosts:
  - "host.docker.internal:host-gateway"

The following config in caddy:

cocpit.example.com {
    reverse_proxy host.docker.internal:9090
}

/etc/cockpit/cockpit.conf:

[WebService]
Origins = https://example.com wss://example.com
AllowUnencrypted = true
ProtocolHeader = X-Forwarded-Proto

As a bonus this will showcase how to expose local non-docker apps.

Maybe also mention ufw / firewall

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant