So I’ve got a couple of services that I access using mydomain.org:1234 for example, but since Nextcloud runs its own web server it’s hosted on mydomain.org/nextcloud.

How do I set up my services so I can access them from a friendly URI like Nextcloud instead of ports?

  • forwardvoid@feddit.nl
    link
    fedilink
    English
    arrow-up
    4
    ·
    1 year ago

    I would suggest using Caddy. I think it’s a little simpler than Traefik and can automatically handle LetsEncrypt SSL/TLS certificates for you

  • IsoKiero@sopuli.xyz
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    You want a reverse proxy. But if nextcould is already reserving ports 80/443 you need a bit more configuration as it’s not possible for multiple processes to use the same port.

  • Vendetta9076@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    1 year ago

    Depends on how your infra is setup but if you’re using a reverse proxy you can do it fairly easily. This example is assuming cloudflare as its what I use.

    Go into cloudflare -> dns then add cname records for your services. The cname record should be service.mydomain.com. Then all you gotta do is tell your proxy what that cname points to. Gonna be honest, been using truenas scale for a while and it does it differently that straight docker which I assume you’re using so I probably wont be much more help but it should at least get you started. If you aren’t using a reverse proxy, you should definitely start. Look up Traefik.