Configure Obico to work with a reverse proxy
Security Warning: The guide below only cover the basic steps to set up a reverse proxy for self-hosted Obico Server. The setup required to properly secure your private network is too complicated to be covered here. Please do your own research to gather the necessary info before you proceed.
This is a community-contributed guide. This guide is based on certain Obico community members' own setup and hence may not work for you.
Some Obico community members have found it easier to set up NGINX reverse proxy using NGINX Proxy Manager. You can try your luck by following this community-contributed guide.
Watching or downloading recorded timelapses uses the domain saved into the timelapse when it was created. This means changing or loosing access to the domain saved in the timelapse will make render the website unable to load and show the timelapse. So if you change or go from using localhost to use a domain, previous timelapses will likely be inaccessable through the website. However new timelapses will work as expected.
So make sure to test with new timelapses after you have made changes to your domain or moved from localhost to a new site-domain.
You can set up a reverse proxy in front of your self-hosted Obico Server.
Two configuration items need to be set differently if you are using a reverse proxy.
1. "Domain name" in Django site configuration.
-
Open Django admin page at
http://tsd_server_ip:3334/admin/. -
Login with username
root@example.com. -
On Django admin page, click "Sites", and click the only entry "example.com" to bring up the site you need to configure. Set "Domain name" as follows:
Suppose:
reverse_proxy_ip: The public IP address of your reverse proxy. If you use a domain name for the reverse proxy (e.g.reverse_proxy_domain), this should the domain name.reverse_proxy_port: The port of your reverse proxy.
The "Domain name" needs to be set to reverse_proxy_ip:reverse_proxy_port. The :reverse_proxy_port part can be omitted if it is standard 80 or 443 port.