- install opnsense
- set up geoip block where only IPs from your own country can ever initiate connection from the outside
- keep your stuff up to date
- enjoy security
Try it, heres a decent guide with lot of examples.
Strange, I never quite got why ever would i want to swtich to NPM, tried it and never liked it…
I ssh in and edit my caddyfile faster than I go to npm web interface and click through menus. I actually can just copy paste caddyfile config and have backup of it, while I am not even sure if npm has any backup solution by now, or you just suppose to backup on docker level.
And it is kinda in the way, a gui layer if you wanna do something more…
It sits in charge of your ports 80/443 and decides to which webserver it sends traffic. If to your jellyfin, or your nextcloud, or your uptimekuma, or your vaultwarden or your mealie or your dashboard…
unlike others it automaticly do https certificate for you and its config is really clean and readable which is nice.
Heres how to set it up if you wanna try.
npm is nice for people who want easy web gui to configure stuff
caddy makes me feel more in control, its easier to backup too, since its all in one easy and readable config, and probably has more features as you go with your needs
There is also not that layer of which developer fucked up that you get when projects are projects of projects…
Something I encountered last week.
http:\\
or port :80
in the address. Otherwise caddy will listen by default for only https.It was no biggie, that forum post is literally the second google result for auto_https
and does good job, but you asked and I have it fresh in memory…
[Heres](file:///home/ja/IT/git/selfhosted-apps-docker/caddy_v2/readme.md) a detailed guide for how to setup caddy reverse proxy. Includes many setups and even monitoring who connects from where to what, though to get that running is bit of work.
is it just the usual way of proxy passing to the http://IP.address:port?
for caddy it is, if it can ping the machine, it can send traffic its way
how do I migrate my current setup (i.e. keys and configs)?
what I like about caddy is that all that is needed is copy paste the simple caddy config file, that is thats needed to move setup from caddy to caddy
What is the best way to approach this mixed system?
I think every reverse proxy can do what you need, including your already running nginx, so you get answers based on personal preference of users. I run before trafik, got guide for that too… its too complex with lot of abstraction layers, and it polutes docker compose files with labels which I dont like, but it is powerful. I played bit with nginx but other than being kinda gold standard of reverse proxy it was ugly boilerplate config compared to caddy. Caddy was simple, clean, and really… just worked. Though you listed using authentification through reverse proxy and there caddy has a shortcoming where you need to do every user manually, instead of just telling here use this file of users/passwords like traefik can.
Would it be possible to use a DNS server and reverse proxy together?
Sure, reverse proxy is a web server whos job is to be in charge of ports 80 and 443 and decide to what other webservers send traffic based on request url
Can I have Internal and external DNS?
Probably, who knows what you really means. Split dns maybe?
Should I switch to running a bare-metal hypervisor?
If you need it. Seems your needs are met with just docker.
What should I use for a DNS Server?
dnsmasq works and I used it for a time, then I moved to having opnsense as my firewall and use its unbound service.
Are they necessary or more of a convenience thing?
Convenience.
Dunno why top answer is necessity, you absolutely can rock open multiple ports that go to different things, same as OP does now through VPN.
But convenience is a big thing… I love caddy reverse proxy for its simplicity and robustness. Here is a docker guide if you wanna try it.
From my basic selfhosted experience… I run kopia as root , my shit uses bind mounts so all I care about is in that directory.
And so far it works fine, to just down old, rename the directory, copy from nightly backup back the directory and start container.
But yeah if there is something I care about I schedule database dumps like here in bookstack or vaultwarden…
To have something more if shit would not work start.
It is bit difficult at start, but really in the end you can monitor and get notification on anything thats happening on your system.
Can you post the compose?
Also I thought that frigate is only usable through home assistant, but that only means android app I guess.
Anyway, I am actually in process of picking few cameras, likely going with tplink vigi, like C340 and see if it will play nicely.