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

added option to map multiple cname hosts to multiple local origins #197

Closed
wants to merge 1 commit into from
Closed

Conversation

udnaan
Copy link

@udnaan udnaan commented Apr 29, 2020

This add support for multiple local origin through a single cloudflared process.
Config file example to use it is as follows:

hostname: public.opus.ai
 # default url that will use any requests not coming through cname hosts
url: http://192.168.3.10:8080
logfile: ./cloudflared.log
origincert: ./cert.pem
no-autoupdate: true
host-to-origin:
    # first service cnamed to public.example.com
    - service1.opus.ai=http://localhost:8080
    # second service cnamed to public.example.com
    - service2.opus.ai=http://192.168.3.10:8080
   .... # and so on

Note that each service still needs to be cnamed manually in cloudflare panel. It should be possible to use the api through the service itself but I haven't explored it yet.

@udnaan udnaan changed the title added option to map a cname host to a local origin added option to map multiple cname hosts to multiple local origins Apr 29, 2020
@udnaan
Copy link
Author

udnaan commented Apr 29, 2020

Addresses #59

@sssilver sssilver force-pushed the master branch 2 times, most recently from 4542670 to 8a020d1 Compare February 1, 2021 13:24
@sudarshan-reddy
Copy link
Contributor

Closing thus because this now exists as ingress rules.

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

Successfully merging this pull request may close these issues.

2 participants