[{"data":1,"prerenderedAt":157},["Reactive",2],{"blog/coolify-reverse-proxy-to-another-host":3},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"draft":6,"external":6,"categories":10,"tags":13,"date":18,"body":19,"_type":151,"_id":152,"_source":153,"_file":154,"_stem":155,"_extension":156},"/blog/coolify-reverse-proxy-to-another-host","blog",false,"","Coolify - Deploying a reverse proxy to another host","Using nginx to deploy a reverse proxy on Coolify exposing a different host thorugh a subdomain managed by Coolify.",[11,12],"Tinkering","HomeLab",[14,15,16,17],"coolify","reverse","proxy","nginx","2024-06-25T00:00:00.000Z",{"type":20,"children":21,"toc":146},"root",[22,30,35,40,45,50,63,70,131,136,141],{"type":23,"tag":24,"props":25,"children":26},"element","p",{},[27],{"type":28,"value":29},"text","Do you have multiple VMs deployed on your home network?",{"type":23,"tag":24,"props":31,"children":32},{},[33],{"type":28,"value":34},"Do you need to expose each through public domains?",{"type":23,"tag":24,"props":36,"children":37},{},[38],{"type":28,"value":39},"You only have a single public IP and don't know how to route trafic depending on domain?",{"type":23,"tag":24,"props":41,"children":42},{},[43],{"type":28,"value":44},"Do you want Coolify do be the entrypoint handling all the trafic?",{"type":23,"tag":24,"props":46,"children":47},{},[48],{"type":28,"value":49},"If the answer is yes or there is any other reason you might think this help, here's a repo + docker image helping you deploy\na reverse proxy with/in Coolify to expose an app on a different host.",{"type":23,"tag":24,"props":51,"children":52},{},[53,55],{"type":28,"value":54},"Repo: ",{"type":23,"tag":56,"props":57,"children":61},"a",{"href":58,"rel":59},"https://github.com/andreitere/coolify-nginx-reverse-proxy",[60],"nofollow",[62],{"type":28,"value":58},{"type":23,"tag":64,"props":65,"children":67},"h3",{"id":66},"steps-roughly",[68],{"type":28,"value":69},"Steps (roughly)",{"type":23,"tag":71,"props":72,"children":73},"ol",{},[74,80,118],{"type":23,"tag":75,"props":76,"children":77},"li",{},[78],{"type":28,"value":79},"Configure your new resource (public repository)",{"type":23,"tag":75,"props":81,"children":82},{},[83,85,92,94,100,102,108,110,116],{"type":28,"value":84},"In ",{"type":23,"tag":86,"props":87,"children":89},"code",{"className":88},[],[90],{"type":28,"value":91},"Configuration",{"type":28,"value":93}," -> ",{"type":23,"tag":86,"props":95,"children":97},{"className":96},[],[98],{"type":28,"value":99},"Environment Variables",{"type":28,"value":101}," configure a new env variable ",{"type":23,"tag":86,"props":103,"children":105},{"className":104},[],[106],{"type":28,"value":107},"PROXY_HOST",{"type":28,"value":109}," and set its value the the host and port you want the reverse proxy to point to (eg: ",{"type":23,"tag":56,"props":111,"children":114},{"href":112,"rel":113},"http://10.1.1.2:3000",[60],[115],{"type":28,"value":112},{"type":28,"value":117},")",{"type":23,"tag":75,"props":119,"children":120},{},[121,123,129],{"type":28,"value":122},"Make sure you ",{"type":23,"tag":86,"props":124,"children":126},{"className":125},[],[127],{"type":28,"value":128},"Generate domain",{"type":28,"value":130}," on the same page",{"type":23,"tag":24,"props":132,"children":133},{},[134],{"type":28,"value":135},"And that's it. It should work. Feel free to fork the repo, suggest fixes, open issues, etc.",{"type":23,"tag":24,"props":137,"children":138},{},[139],{"type":28,"value":140},"Thanks",{"type":23,"tag":24,"props":142,"children":143},{},[144],{"type":28,"value":145},"🙏🏻",{"title":7,"searchDepth":147,"depth":147,"links":148},2,[149],{"id":66,"depth":150,"text":69},3,"markdown","content:blog:11.coolify-reverse-proxy-to-another-host.md","content","blog/11.coolify-reverse-proxy-to-another-host.md","blog/11.coolify-reverse-proxy-to-another-host","md",1724422646754]