𝘋𝘪𝘳𝘬

Somewhere between Linux woes, gaming, open source, 3D printing, recreational coding, and occasional ranting.

🔗 Me, but elsewhere

🇬🇧 / 🇩🇪

  • 1 Post
  • 39 Comments
Joined 2 years ago
cake
Cake day: June 9th, 2023

help-circle

  • but I’d like to give Nginx Proxy Manager a try, it seems easier to manage stuff not in docker.

    NPM is pretty agnostic. If it receives a request for a specific address and port combination it just forwards the traffic to another specific address and port combination. This can be a docker container, but also can be a physical machine or any random URL.

    It also has Let’s Encrypt included (but that should be a no-brainer).






  • Ah, I see. Not as native web application, though.

    They’re using Alpine Linux, install X and Openbox and Xvnc and serve KasmVNC via Nginx and connect via KasmVNC to that X instance. LibreOffice is started in fullscreen and looks like a slightly blurry web application.

    But in reality it is just a regular desktop installation with some extra things.

    @fikran@lemm.ee, maybe this is a solution? I wouldn’t recommend it because it’s not really a web-based document editor.



  • Exactly. With directly using certbot handling all and everything fully automatically I ran my old setup with a free dyndns subdomain for quite some time without any issues.

    Since Let’s encrypt nowadays is basically implemented in every reverse proxy: certificates are an absolute no-brainer.

    If someone manages to buy and configure a domain to serve selfhosted content, this person will also be able to either set up certbot or use the built-in functionality of their reverse proxy.






  • I don’t trust them with that. They have an extremely limited free tier that indirectly “forces” users to upgrade to one of the paid tiers. The one that is least limited and reasonably priced is “Proton Unlimited” for ten bucks a month to be paid annually. Plus: you cannot even use a mail client of your choice without installing an extra application for that.

    You could easily selfhosting the cloud stuff. If you don’t want to selfhost a mail server you could use one from a mail provider. Don’t know how it’s done internationally, but here in Germany are quite a few companies that provide you with either a domain forwarding service for your selfhosted stuff, or a good and cheap mail server solution for a fraction of what Proton wants to have, and I highly doubt they need ca. $120 a year per user to offer a handful of mail aliasev and allowing you to create folders in your mailbox.

    And you’re not even arbitrarily limited - and your data never leaves your private environment.







  • How do you handle SSL certs and internet access in your setup?

    I have NPM running as “gateway” between my LAN and the Internet and let handle it all of my vertificates using the built-in Let’s Encrypt features. None of my hosted applications know anything about certificates in their Docker containers.

    As for your questions:

    1. You can and should – it makes managing the applications much easier. You should use some containerization. Subdomains and correct routing will be done by the reverse proxy. You basically tell the proxy “when a request for foo.example.com comes in, forward it to myserver.local, port 12345” where 12345 is the port the container communicates over.
    2. 100% depends on your use case. I purchased a domain because I host stuff for external access, too. I just have my setup to report it’s external IP address to my domain provider. It basically is some dynamic DNS service but with a “real domain”. If you plan to just host for yourself and your friends, some generic subdomain from a dynamic DNS service would do the trick. (Using NPMs Let’s Encrypt configuration will work with that, too.)
    3. You can’t. Every georestricting can be circumvented. If you want to restrict access, use HTTP basic auth. You can set that up using NPM, too. So users authenticate against NPM and only when it was successful,m the routing to the actual content will be done.
    4. You might want to look into Cloudflare Tunnel to hide your real IP address and protect against DDoS attacks.
    5. No 🙂