On 2019-04-15 12:13, Mathew Perry wrote:
it's not that easy 🙂
Did you ensure that it was working locally first?
with this directive:
location /backuppc/ {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header Host $http_host;
proxy_max_temp_file_size 0;
proxy_pass
https://u2182357.ct.sendgrid.net/wf/click?upn=OIcehkuoae0CzVKCEzanyrAnO8bh02MVVnzKtEAq6iQ-3D_OypFYCWzG5ApGW-2FFpGTxc4RCS9eud0Dl1htN5rYoUZ8To4zeNUFBkAGI3hzer91ClCxQ1Qsn89oEtKqFdiYBtl93CUqCAPaeb2zgXoldnEbTgpCzAUVKZxXb-2B4JzRy1cK1m0NXJBgFz5JQ-2FM0LzSw1eqHjeHCpf42fU-2FTxXB2fFB16f4P-2F-2FkcjwBabI1woU40tZq8bWR4TZXTRGzhMSNJXoH-2Ffrt-2B1LtI-2Bh2OQKz0Uc-3D
proxy_redirect
https://u2182357.ct.sendgrid.net/wf/click?upn=q9oknVuBMf-2FjuIJ06YpcAg-3D-3D_OypFYCWzG5ApGW-2FFpGTxc4RCS9eud0Dl1htN5rYoUZ8To4zeNUFBkAGI3hzer91ClCxQ1Qsn89oEtKqFdiYBtt2iAyFgLJ6VjTyV3i13b8yYL9INm7q2JrvP8lpPl8pq8izVHGLF5UBqDxf7VWnjbD9ThQ7XSg8CpkGNLRbXYpYhMaPeU66DdpxdmhAyOWWhs5LLg2dgczwUg3G0ClLiNhkSgWxrBUUbJfFrd0Z4ILw-3D
https://u2182357.ct.sendgrid.net/wf/click?upn=rBK8reUlX8Sxr7Iz1fV-2F7SmCwE3HeriTlvqQE-2FYLnDc-3D_OypFYCWzG5ApGW-2FFpGTxc4RCS9eud0Dl1htN5rYoUZ8To4zeNUFBkAGI3hzer91ClCxQ1Qsn89oEtKqFdiYBthz3Oq3LUsj9ziTBIFHGqG8g-2BLR2rvBx-2BNIhUPDGo72MjNFqZURIBLNO1JEQc7OI3ZDH1jCV9bBryhqms7A8RXyhjKz0dGsKHx3Vg-2FYFOBcfscujazm4UQG1HjDAQdatSgMryiwPMRc9HnMz0Flmafc-3D
proxy_redirect off;
}
leads to:
"The Requested URL /BackupPC_Admin was not found on this server"
i wouldn't ask here if only a proxy pass is needed....
-------------------------
FROM: Johan Ehnberg <jo...@molnix.com>
SENT: Monday, April 15, 2019 10:08 AM
TO: backuppc-users@lists.sourceforge.net
SUBJECT: [BackupPC-users] Fwd: Re: backuppc behind nginx which is on
another host
I accidentally sent my reply just to Matthew. Here is a copy for
future reference.
-------- Forwarded Message --------
SUBJECT:
Re: [BackupPC-users] backuppc behind nginx which is on another
host
DATE:
Mon, 15 Apr 2019 12:25:51 +0300
FROM:
Johan Ehnberg <jo...@molnix.com>
TO:
Mathew Perry <mamema2...@hotmail.com>
Hi Matthew,
I would recommend using the nginx server as a reverse proxy.
So, set up the backuppc server normally (i.e. with its own web
server), and on nginx, use something like the following if you will
connect remotely over TLS and Let's Encrypt certificate:
server {
listen 80;
server_name backuppc.example.com;
return 301
https://u2182357.ct.sendgrid.net/wf/click?upn=rBK8reUlX8Sxr7Iz1fV-2F7TC34CkM-2FTKiyIQzRymkOx1xdqYC5E3Bp3F7k5LtuoC1_OypFYCWzG5ApGW-2FFpGTxc4RCS9eud0Dl1htN5rYoUZ8To4zeNUFBkAGI3hzer91ClCxQ1Qsn89oEtKqFdiYBtoa1ObICDPceySbFC-2F3ih5oq3hg-2FkhYIFcNLmvtIBTmGJJe-2F964lNoHAGDnQds-2Fxmlmr9hfr8PAnq56dnLpCgZL5RBs5scEWSsAWx7xIQObJ5hyDJUkTJjeuRTt1isxmmyWe7fiR7n4YUy3CEuFPPHU-3D
[1];
}
server {
listen 443 ssl http2;
server_name backuppc.example.com;
ssl_prefer_server_ciphers on;
ssl_ciphers
EECDH+CHACHA20:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5;
ssl_certificate
/etc/letsencrypt/live/backuppc.example.com/fullchain.pem;
ssl_certificate_key
/etc/letsencrypt/live/backuppc.example.com/privkey.pem;
ssl_session_cache shared:SSL:5m;
ssl_session_timeout 1h;
add_header Strict-Transport-Security max-age=15768000 always;
location / {
include /etc/nginx/proxy_params;
proxy_pass
https://u2182357.ct.sendgrid.net/wf/click?upn=phT9o-2FIE-2FsNYgBy7FoncRJHlffvAv5mRzpSKVBf1eks-3D_OypFYCWzG5ApGW-2FFpGTxc4RCS9eud0Dl1htN5rYoUZ8To4zeNUFBkAGI3hzer91ClCxQ1Qsn89oEtKqFdiYBtvnoP96JWsBx1dwm70lKh1zzUcqxeAQNaLSoPvQ9dfIrrZnNcRr05ee0t-2FR3FdRd8lxdgqUdATk9ipwA8i7gPy7-2FUUrBB-2BZSCAYtk1f9Dv-2BEHGLuJs4Gjckc0Ep65-2BGe-2B1LT8mFDiq171-2BtGkJjqLJg-3D
}
}
Change domains and IP to taste.
Best regards,
Johan Ehnberg
On 4/15/19 11:19 AM, Mathew Perry wrote:
Hi
i'm using latest backuppc and want to connect emotely to it. I have
nginx on another host, not on same host where backuppc is running
on.
So, i'm struggling to get the nginx config working to connect to
the backuppc host. The configs on the internet are all for nginx
configs if backuppc and nginx are on the same host.
_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/