Re: [BackupPC-users] Fwd: Re: backuppc behind nginx which is on another host

2019-04-15 Thread Michael Stowe

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 
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 

TO:
Mathew Perry 

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/


Re: [BackupPC-users] Fwd: Re: backuppc behind nginx which is on another host

2019-04-15 Thread Mathew Perry
it's not that easy 🙂

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 http://ipaddress:port/;
  proxy_redirect http:// https://;

  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 
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 
To: Mathew Perry 



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://$server_name$request_uri;
}

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 http://10.0.0.2:80;
  }
}

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/


--
Johan Ehnberg
Founder, CEO
Molnix Oy

jo...@molnix.com
+358 50 320 96 88
molnix.com

[cid:part9.BB5D5B34.86CDBD56@molnix.com]

The contents of this e-mail and its attachments are for the use of the intended 
recipient only, and are confidential and may contain legally privileged 
information. If you are not the intended recipient or have otherwise received 
the e-mail in error, please notify the sender by replying to this e-mail 
immediately and then delete it immediately from your system. Any dissemination, 
distribution, copying or use of this communication without prior and explicit 
permission of the sender is strictly prohibited.

Please consider the environment - do not print this e-mail unless you really 
need to.
___
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/


[BackupPC-users] Fwd: Re: backuppc behind nginx which is on another host

2019-04-15 Thread Johan Ehnberg
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 
To: Mathew Perry 



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://$server_name$request_uri;
}

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 http://10.0.0.2:80;
  }
}

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/

--
Signature
*Johan Ehnberg*

Founder, CEO

Molnix Oy


jo...@molnix.com 

+358 50 320 96 88

molnix.com 


/The contents of this e-mail and its attachments are for the use of the 
intended recipient only, and are confidential and may contain legally 
privileged information. If you are not the intended recipient or have 
otherwise received the e-mail in error, please notify the sender by 
replying to this e-mail immediately and then delete it immediately from 
your system. Any dissemination, distribution, copying or use of this 
communication without prior and explicit permission of the sender is 
strictly prohibited./


/*Please consider the environment - do not print this e-mail unless you 
really need to.*/


___
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/


Re: [BackupPC-users] backuppc behind nginx which is on another host

2019-04-15 Thread Michael Stowe

On 2019-04-15 01:19, 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.


In the scenario you describe, BackupPC is not particularly relevant.  
This is what you're looking for:

https://u2182357.ct.sendgrid.net/wf/click?upn=rBK8reUlX8Sxr7Iz1fV-2F7Qbq8wyTVtPdoL6cG1NoY5QSxro8-2BGDy3hYNwXdYZWDRo-2BJs-2F4ma49gq77H68OBQg26JWHq5oY7rWfRC0kzPudk-3D_OypFYCWzG5ApGW-2FFpGTxc4RCS9eud0Dl1htN5rYoUZ8To4zeNUFBkAGI3hzer91CUtUIap9o-2F-2FLY8mJujHuhGHmdt7vMXOLqsr5JZevMfKN-2Fud-2BhwIAlPNbR1T0dysWh5kZbDo7XI80cVKBlkIVGFKeD4J5Vdo0v8CjCkdfM67Gk8TsPzIjoJ-2BL7MwpI6zVLY-2Fvyvq6lq-2FJn-2FjnBV9tkkoCn-2FFNNjDNRubEmMkQnUOaHAGGWaCAYQ24422bNijYa

You'll still need BackupPC's web interface working on its own server, on 
any port, and you can lock it down to the reverse proxy server (how one 
accomplishes this differs depending on how one configures the web 
interface.)
___
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/


[BackupPC-users] backuppc behind nginx which is on another host

2019-04-15 Thread Mathew Perry
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/