MallocArray / obico-oraclecloud

Self Hosted Obico server on Oracle Cloud Free Tier
53 stars 3 forks source link

Consider adding Cloudflare Tunnel support #10

Closed tom2199 closed 1 year ago

tom2199 commented 1 year ago

First of all, thanks for making this! I understand that currently there is no HTTPS support for this stack, but have you considered adding Cloudflared Tunnel support to it? It should be way easier to set up and can still be free if used with a free domain. I do not have a static IP and where I live that's not common at all so that's why I'm asking, changing the firewall rules every 24h is not feasible in the long term. Thanks again!

MallocArray commented 1 year ago

I'm not familiar with Cloudflared Tunnel, but if you have some documentation or steps I can look into it.
I am working on updating the config to correct a mistake on the backup schedule that backs up the database too frequently and to add an option to automatically update Obico server without redeploying.

I've also recently found out about OctoEverywhere which gives remote access without a dedicated VPN and recently added some failure detection similar to Obico, so it may end up being a solution as well.

tom2199 commented 1 year ago

Thanks for your answer, the update sonds great! Here is the documentation from Cloudflare using the CLI: https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/install-and-setup/tunnel-guide/local/#set-up-a-tunnel-locally-cli-setup (there's also the possibility to set up a tunnel remotely with the Cloudflare Dashboard online but afaik this option is disabled for free domains). cloudflared can also be run within a docker container. The config for just a https site would look like this:

tunnel: <Tunnel-UUID>
credentials-file: /home/nonroot/.cloudflared/<Tunnel-UUID>.json #that's the path within the docker container

ingress:
  - hostname: <hostname>
    service: <local hostname & port> #for example http://localhost:<port> or http://<container-name>:<port>
  - service: http_status:404

If I can help with anything please let me know!

MallocArray commented 1 year ago

After looking it over more, this is more significant of a change than I had thought and seems out of scope of the "Stacks" configuration I'm going for to assist in a quick setup with little knowledge of Oracle Cloud. But you have full access to the Instance after it deploys, so you could do any modifications you would to enable this support, but for now, I do not plan to add it to this project.