ammnt / freenginx

Distroless FreeNGINX with HTTP/3 and QUIC support (BoringSSL)🚀
https://msftcnsi.com/
8 stars 0 forks source link

Doesn't work for me. Not locally nor live #41

Open lordspace opened 6 days ago

lordspace commented 6 days ago

Hi, Thanks for sharing this Docker image but it's not working for me. Do you have any idea why? I tried it locally with a self signed SSL and also on my staging server with real ssl issued by let's entrypt.

Here's 7min video. https://www.loom.com/share/ae9f76e192414297a280dfc8b626ba28?sid=4d6df1c7-6a19-442f-834b-4cefb3bcf501

docker run -it --rm \
--name test_nginx \
--hostname test_nginx \
--tmpfs /tmp \
--tmpfs /var/cache/nginx \
-p 8080:8080/tcp \
-p 8443:8443/tcp \
-p 8443:8443/udp \
-v /home/qs/Documents/projects/qs_client_servers/data/ssl:/var/lib/nginx/ssl/:z \
-v /home/qs/Documents/projects/qs_client_servers/docker/reverse_proxy/help_docs/sample_vhost.conf:/etc/freenginx/conf.d/default.conf:z \
-v /home/qs/Documents/projects/qs_client_servers/site/htdocs:/usr/share/nginx/html:z \
-v /etc/passwd:/etc/passwd:ro \
-v /etc/group:/etc/group:ro \
-u "$(id -u):$(id -g)" \
ammnt/freenginx:latest
ammnt commented 5 days ago

@lordspace, thanks for contacting me. TBH, unfortuantely I don't have a live server wtih freenginx now, but what I saw and what I can recommend you:

  1. Wrong cache path - better use: /var/cache/freenginx please also check other directories in Dockerfile: https://github.com/ammnt/freenginx/blob/main/Dockerfile
  2. Try to test http3 connection with curl and Firefox, not chrome-based browsers
  3. Check that 8443/udp is not closed on your firewall or something like that
  4. Also you can test the connection with other images and Angie image with QuicTLS (another TLS library): https://github.com/ammnt/angie
  5. Disable proxy or antivirus apps because some proxies can not filter http3 packets and just block them.