Configure S3 Manager behind an Nginx reverse proxy
mainWhen running multiple instances of S3 Manager behind a single Nginx reverse proxy (e.g., to serve different S3 accounts at different paths), use the ROOT_URL environment variable to match the Nginx location block.
Example Scenario: If Nginx is configured with:
location /teamx/proxying tos3manager-teamxlocation /teamy/proxying tos3manager-teamy
Then:
- The
s3manager-teamxinstance must haveROOT_URL=teamx. - The
s3manager-teamyinstance must haveROOT_URL=teamy.
location /teamx/ {
proxy_pass http://s3manager-teamx:8080/;
auth_basic "teamx";
auth_basic_user_file /conf/teamx-htpasswd;
}
location /teamy/ {
proxy_pass http://s3manager-teamy:8080/;
<other nginx settings>
}