[GH-ISSUE #2] White screen #1

Closed
opened 2026-09-29 12:58:17 +00:00 by slurdge · 9 comments
Owner

Originally created by @vladosam on GitHub (Jan 25, 2023).
Original GitHub issue: https://github.com/slurdge/docker-keewebdav/issues/2

Hi, i'm trying to test your docker image with docker run -p 8080:8080 slurdge/keewebdav but once i open http://IP:8080 all don't get anything on screen. Just white screen and nothing on it. Only favicon in visible on tab. Also is there some instructions how to use my wildcard certificate with caddy not the one from letsencrypt? Thanks.

Originally created by @vladosam on GitHub (Jan 25, 2023). Original GitHub issue: https://github.com/slurdge/docker-keewebdav/issues/2 Hi, i'm trying to test your docker image with `docker run -p 8080:8080 slurdge/keewebdav` but once i open http://IP:8080 all don't get anything on screen. Just white screen and nothing on it. Only favicon in visible on tab. Also is there some instructions how to use my wildcard certificate with caddy not the one from letsencrypt? Thanks.
Author
Owner

@slurdge commented on GitHub (Jan 25, 2023):

Hello, I just tried the exact command you pasted and it works on two different computers. Can you try with other docker images ? The only thing I can think of is that you have a firewall preventing access to the page.

If you want to use your own wildcard, then you would need to mount the Caddyfile (which is at /etc/Caddyfile) and put a section with your certificate. Also don't forget to mount your certificates inside the docker.

<!-- gh-comment-id:1403600836 --> @slurdge commented on GitHub (Jan 25, 2023): Hello, I just tried the exact command you pasted and it works on two different computers. Can you try with other docker images ? The only thing I can think of is that you have a firewall preventing access to the page. If you want to use your own wildcard, then you would need to mount the `Caddyfile` (which is at `/etc/Caddyfile`) and put a section with your certificate. Also don't forget to mount your certificates inside the docker.
Author
Owner

@vladosam commented on GitHub (Jan 25, 2023):

I tried other some other keeweb images and they work fine. So i don't think it's firewall problem. But I get this error in developer tools Content Security Policy: The page's settings blocked the loading of a resource at inline ("script-src").

<!-- gh-comment-id:1403657082 --> @vladosam commented on GitHub (Jan 25, 2023): I tried other some other keeweb images and they work fine. So i don't think it's firewall problem. But I get this error in developer tools `Content Security Policy: The page's settings blocked the loading of a resource at inline ("script-src").`
Author
Owner

@slurdge commented on GitHub (Jan 25, 2023):

Ah, can you try to access http://localhost:8080/ and tell me if it works ?

<!-- gh-comment-id:1403664861 --> @slurdge commented on GitHub (Jan 25, 2023): Ah, can you try to access http://localhost:8080/ and tell me if it works ?
Author
Owner

@slurdge commented on GitHub (Jan 25, 2023):

The script-src hash should be patched automatically but maybe there's a bug.

See here: https://github.com/slurdge/docker-keewebdav/blob/master/Dockerfile#L28

<!-- gh-comment-id:1403665355 --> @slurdge commented on GitHub (Jan 25, 2023): The script-src hash should be patched automatically but maybe there's a bug. See here: https://github.com/slurdge/docker-keewebdav/blob/master/Dockerfile#L28
Author
Owner

@vladosam commented on GitHub (Jan 25, 2023):

I can't. It's on headless server. I can curl http://localhost:8080 and I get whole index file.

<!-- gh-comment-id:1403671702 --> @vladosam commented on GitHub (Jan 25, 2023): I can't. It's on headless server. I can curl http://localhost:8080 and I get whole index file.
Author
Owner

@slurdge commented on GitHub (Jan 25, 2023):

You could try to port forward your 8080 through SSH if you want to confirm, but I'm pretty sure that newer browsers block what they believe less secure from more secure web.
I have the same issue as you if I access through IP and not through localhost.

For now I don't have a solution, as I don't see what I should change to the Security Policy without making it less secure, this is definitely not what you want.

If you manage to have a https in front of it, I'm quite sure it would work.

<!-- gh-comment-id:1403694356 --> @slurdge commented on GitHub (Jan 25, 2023): You could try to port forward your 8080 through SSH if you want to confirm, but I'm pretty sure that newer browsers block what they believe less secure from more secure web. I have the same issue as you if I access through IP and not through localhost. For now I don't have a solution, as I don't see what I should change to the Security Policy without making it less secure, this is definitely not what you want. If you manage to have a https in front of it, I'm quite sure it would work.
Author
Owner

@slurdge commented on GitHub (Jan 25, 2023):

I just tested vanilla keeweb with a simple python webserver and the bug is the same, you could try to ask the question at keeweb/keeweb and see if they have a suggestion

<!-- gh-comment-id:1403705662 --> @slurdge commented on GitHub (Jan 25, 2023): I just tested vanilla keeweb with a simple python webserver and the bug is the same, you could try to ask the question at keeweb/keeweb and see if they have a suggestion
Author
Owner

@vladosam commented on GitHub (Jan 25, 2023):

I'll try it tomorrow with traefik or npm in front of it. I'll report back to you.

<!-- gh-comment-id:1403712764 --> @vladosam commented on GitHub (Jan 25, 2023): I'll try it tomorrow with traefik or npm in front of it. I'll report back to you.
Author
Owner

@vladosam commented on GitHub (Jan 26, 2023):

I tested with npm and everything works wooohooo. Thanks. Closing this.

<!-- gh-comment-id:1404669941 --> @vladosam commented on GitHub (Jan 26, 2023): I tested with npm and everything works wooohooo. Thanks. Closing this.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: slurdge/docker-keewebdav#1
No description provided.