Alles anzeigenYep, did it yesterday:
I'm staying at a house that has the router available (and the access details in plain site, ).
So, made a simple SWAG stack,
Made a duckdns domain.
Portforwarded the 80 to 81, 443 to 444 on the router to the IP of the test Pi
Launched the stack
But hit a wall due to problems with letsencrypt acme server beeing down.
Read a bit and found instructions to create the certificate by bashing to swag and running certbot with duckdns plugin.
After 5 minutes, I had SWAG page fully secured.
So, yeah, it's that simple,
Only thing I still haven't done, is moving the domain to a private one I bought (holding on to when I move to OMV6)
It's just as easy. I was nervous when I bought a domain as I'd never done that sort of thing.
Only thing different you have to do is create an A record and then just create CNAME's for each of your subdomains (I'm not sure on subfolder).. then redeploy swag to get a new key for the new subdomain.
This is one reason why personally, I like using the "network mode" in my containers to attach them to swag. By doing that, it keeps me from having 1 big ass docker-compose/stack file with all my containers I need routed through swag. Also, if I need to adjust the stack of just one of my containers... I don't have to redeploy the entire stack, since almost all my containers are in their own stack.