[tahoe-lafs-trac-stream] [tahoe-lafs] #1928: web redirects should use relative URLs

tahoe-lafs trac at tahoe-lafs.org
Fri Mar 15 23:48:44 UTC 2013


#1928: web redirects should use relative URLs
-----------------------------------+----------------------------------
     Reporter:  leif               |      Owner:  davidsarah
         Type:  defect             |     Status:  assigned
     Priority:  normal             |  Milestone:  1.11.0
    Component:  code-frontend-web  |    Version:  1.9.2
   Resolution:                     |   Keywords:  http redirect webapi
Launchpad Bug:                     |
-----------------------------------+----------------------------------

Comment (by bsd):

 I'm trying to reverse proxy the tahoe web frontend through nginx in order
 to use nginx's built-in auth_basic functionality, since there currently
 isn't a way to authenticate access to the web interface. I can
 successfully look at the welcome page, but if I want to access a tahoe
 URI, it'll try to use the port configured in tahoe.cfg, instead of passing
 through nginx. Since tahoe is running on localhost, my connection fails.

 {{{
 [node]
 web.port = tcp:4567:interface=127.0.0.1
 web.static = public_html
 }}}

 {{{
                 proxy_pass http://127.0.0.1:4567/;
                 autoindex       off;
                 proxy_set_header Accept-Encoding '';
                 proxy_ignore_headers Cache-Control Expires;
                 proxy_set_header Referer $http_referer;
                 proxy_set_header Host $host;
                 proxy_set_header Cookie $http_cookie;
                 proxy_set_header X-Real-IP $remote_addr;
                 proxy_set_header X-Forwarded-Host $host;
                 proxy_set_header X-Forwarded-Server $host;
                 proxy_set_header X-Forwarded-For
 $proxy_add_x_forwarded_for;
                 auth_basic "Restricted";
                 auth_basic_user_file /path/to/htpasswd;
 }}}

 These are the relevant configuration bits for tahoe and nginx,
 respectively.

-- 
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/1928#comment:2>
tahoe-lafs <https://tahoe-lafs.org>
secure decentralized storage


More information about the tahoe-lafs-trac-stream mailing list