SSL on the web interface

Hello!

I modifyed nginx config for use separete ngingx server.

Web interface at your local UrBackup server should works. Nginx connects to it and proxy traffic and add ssl (https).

You have to edit only proxy_pass http://your.UrBackup.server:55414;

# /etc/nginx/sites-available/urbackup.conf
# Make UrBackup webinterface accessible via SSL
server {
	# Define your listen https port
	listen 55416 ssl;
 
	# (optionally)
	# server_name urbackup.yourdomain; 
 
	# SSL configuration
	ssl on;
	include snippets/ssl-params.conf;
	ssl_certificate /etc/ssl/certs/urb-cert.crt;
	ssl_certificate_key /etc/ssl/certs/urb-cert.key;
	# SSL configuration
     	
	# Proxy to your UrBackup server	
	location / {
		# example:
		# proxy_pass  http://10.10.10.108:55414/
		proxy_pass http://your.UrBackup.server:55414;
		    		
		proxy_set_header Host $host;
		proxy_set_header X-Real-IP $remote_addr;
		proxy_set_header  X-Forwarded-For   $remote_addr;
		proxy_buffering off;    			
		proxy_connect_timeout 20s;
		proxy_send_timeout   20;
		proxy_read_timeout   20;
	  }
 
	# If come here using HTTP, redirect them to HTTPS
	error_page 497 https://$host:$server_port$request_uri;
	
	# Disable logs
	access_log off;
	error_log off;
	
}
2 Likes