Code Monkey home page Code Monkey logo

Comments (8)

hackmonker avatar hackmonker commented on July 26, 2024 1

nice idea about the docs. I learned config and cloudflared with a bit difficulty since the docs are not that good. it will help a lot new users.

from cloudflared-docker.

hackmonker avatar hackmonker commented on July 26, 2024

Ah we can add in command if I am not wrong

from cloudflared-docker.

Erisa avatar Erisa commented on July 26, 2024

You can mount a config file to /etc/cloudflared/config.yml in the container.

e.g. docker run -v $PWD/config.yml:/etc/cloudflared/config.yml erisamoe/cloudflared

from cloudflared-docker.

hackmonker avatar hackmonker commented on July 26, 2024

I am using compose
so we run that command once?

from cloudflared-docker.

Erisa avatar Erisa commented on July 26, 2024

No, you include it as a volume in your compose file:

  cloudflared:
    image: erisamoe/cloudflared
    volumes:
        - ./config.yml:/etc/cloudflared/config.yml

You may also want to mount other files like your cert.pem or your tunnels json credentials file. Add these as extra volumes in the compose file.

Eventually I hope to add this to the docs here: https://docs.erisa.uk/cloudflared-docker/
But right now haven't found the time.

from cloudflared-docker.

montoyasg avatar montoyasg commented on July 26, 2024

For those who are not very sure you can follow this guide to generate the YAML config file & tunnel-creds JSON

After that just mount the folder containing these files to '/etc/cloudflared' and run this command instead 'tunnel --config /etc/cloudflared/config.yml run'

Probably UDP Receive Buffer size could be increased on this container to support QUIC

from cloudflared-docker.

Erisa avatar Erisa commented on July 26, 2024

Probably UDP Receive Buffer size could be increased on this container to support QUIC

Is that something we can configure on the container? I was under the impression it was a host setting.

Your flow for named tunnels looks about right, though the explicit --config isn't strictly required, my containers run tunnel run with no issue since that's the default config location anyway.

from cloudflared-docker.

montoyasg avatar montoyasg commented on July 26, 2024

Probably UDP Receive Buffer size could be increased on this container to support QUIC

Is that something we can configure on the container? I was under the impression it was a host setting.

Your flow for named tunnels looks about right, though the explicit --config isn't strictly required, my containers run tunnel run with no issue since that's the default config location anyway.

you're right. followed this guide to increase buffer size (https://github.com/lucas-clemente/quic-go/wiki/UDP-Receive-Buffer-Size). Tunnel comes online but no traffic passes thru it after a few mins. HTTP2 is still much more stable

from cloudflared-docker.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.