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

Domain Name in Kuma docker #2561

Closed
2 tasks done
megasmorf opened this issue Jan 7, 2023 · 7 comments
Closed
2 tasks done

Domain Name in Kuma docker #2561

megasmorf opened this issue Jan 7, 2023 · 7 comments

Comments

@megasmorf
Copy link

⚠️ Please verify that this bug has NOT been raised before.

  • I checked and didn't find similar issue

🛡️ Security Policy

📝 Describe your problem

I have Kuma with docker installation so my format now is http://serverip/kumasetup/xxx my question is how can i have domain with https:// in kuma for example kuma.mydomain.xxx

🐻 Uptime-Kuma Version

1.19.3

💻 Operating System and Arch

Ubuntu 20.04.5 LTS

🌐 Browser

Google Chrome

🐋 Docker Version

Docker version 20.10.22, build 3a2c30b

🟩 NodeJS Version

No response

@megasmorf megasmorf added the help label Jan 7, 2023
@DimitriDR
Copy link
Contributor

You can. You need a reverse proxy or you can also use Cloudflare tunnels.
However, It is not a bug linked to Uptime Kuma.

@megasmorf
Copy link
Author

how can i do that with reverse proxy can you help me?

@louislam
Copy link
Owner

louislam commented Jan 7, 2023

Many methods, but I recommend Cloudflare Tunnel.

https://github.com/louislam/uptime-kuma/wiki/Reverse-Proxy-with-Cloudflare-Tunnel

@megasmorf
Copy link
Author

i tried with my apache but dont work can you see where is the errror

apache file

ServerName status.xxx.xxx SSLEngine On SSLCertificateFile /etc/letsencrypt/live/status.xxx.xxx/fullchain.pem SSLCertificateKeyFile /etc/letsencrypt/live/status.xxx.xxx/privkey.pem # Protocol 'h2' is only supported on Apache 2.4.17 or newer. Protocols h2 http/1.1

ProxyPass / http://localhost:3001/
RewriteEngine on
RewriteCond %{HTTP:Upgrade} =websocket
RewriteRule /(.) ws://localhost:3001/$1 [P,L]
RewriteCond %{HTTP:Upgrade} !=websocket
RewriteRule /(.
) http://localhost:3001/$1 [P,L]

and composer file

Simple docker-compose.yml

You can change your port or volume location

version: '3.3'

services:
https-portal:
image: steveltn/https-portal:1
ports:
- '8087:8087'
- '4443:4443'
links:
- uptime-kuma
restart: always
environment:
DOMAINS: 'status.xxx.xxx -> http://status.xxx.xxx:3001'
STAGE: 'production' # Don't use production until staging works
# FORCE_RENEW: 'true'
WEBSOCKET: 'true'
volumes:
- https-portal-data:/var/lib/https-portal

uptime-kuma:
image: louislam/uptime-kuma:1
container_name: uptime-kuma
volumes:
- ./uptime-kuma:/app/data
ports:
- 3001:3001

volumes:
https-portal-data:

@yehudaTiram
Copy link

yehudaTiram commented Jan 21, 2023

@megasmorf I followed this
https://www.wpdoze.com/install-uptime-kuma/
And it worked smoothly. See if it helps.

@github-actions
Copy link

We are clearing up our old issues and your ticket has been open for 3 months with no activity. Remove stale label or comment or this will be closed in 2 days.

@github-actions github-actions bot added the Stale label Apr 21, 2023
@github-actions
Copy link

This issue was closed because it has been stalled for 2 days with no activity.

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

No branches or pull requests

4 participants