Skip to content

Commit

Permalink
revert moving webmin to sub-path
Browse files Browse the repository at this point in the history
  • Loading branch information
PiSCSI User authored and rdmark committed May 1, 2024
1 parent ddfd40d commit 105a729
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
4 changes: 0 additions & 4 deletions easyinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -986,10 +986,6 @@ function installWebmin() {
sudo sed -i 's@/usr/sbin@/usr/local/sbin@' "$WEBMIN_MODULE_CONFIG"
fi
rm netatalk2-wbm.tgz || true

# Configure Webmin to be accessible from a '/webmin' URL path
echo "webprefix=/webmin" | sudo tee -a /etc/webmin/config
echo "webprefixnoredir=1" | sudo tee -a /etc/webmin/config
}

# updates configuration files and installs packages needed for the OLED screen script
Expand Down
6 changes: 0 additions & 6 deletions python/web/service-infra/nginx-default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,6 @@ server {
proxy_pass http://127.0.0.1:8080;
}

# Configure Webmin to be accessed via '/webmin' URL path
# NOTE: Use of 'https' here is required as is the trailing '/'
location /webmin {
proxy_pass https://127.0.0.1:10000/;
}

# Large files
client_max_body_size 0;
proxy_read_timeout 1000;
Expand Down
6 changes: 3 additions & 3 deletions python/web/src/templates/admin.html
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
{% if webmin_configured %}
<ul>
<li class="service-item extlink">
<a href="../webmin/netatalk2/" target=\"_blank\">{{ _("Manage the AFP server") }}</a>
<a href="https://{{ env["ip_addr"] }}:10000/netatalk2/" target=\"_blank\">{{ _("Manage the AFP server") }}</a>
</li>
</ul>
{% endif %}
Expand All @@ -144,7 +144,7 @@
{% if webmin_configured %}
<ul>
<li class="service-item extlink">
<a href="../webmin/samba/" target=\"_blank\">{{ _("Manage the SMB server") }}</a>
<a href="https://{{ env["ip_addr"] }}:10000/webmin/samba/" target=\"_blank\">{{ _("Manage the SMB server") }}</a>
</li>
</ul>
{% endif %}
Expand All @@ -166,7 +166,7 @@
</li>
{% if webmin_configured %}
<li class="service-item extlink">
<a href="../webmin/" target=\"_blank\">{{ _("Manage PiSCSI services & Linux with Webmin") }}</a>
<a href="https://{{ env["ip_addr"] }}:10000/" target=\"_blank\">{{ _("Manage PiSCSI services & Linux with Webmin") }}</a>
</li>
{% endif %}
</ul>
Expand Down

0 comments on commit 105a729

Please sign in to comment.