Serve windmill on /windmill subpath instead of port 3100; add to disable-containers.js

Agent-Logs-Url: https://github.com/nextcloud/all-in-one/sessions/3c346202-c2e6-4e97-bf61-a1f5d42670fd

Co-authored-by: szaimen <42591237+szaimen@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-04-27 09:30:29 +00:00
committed by GitHub
parent f08103ca15
commit 51124784c2
6 changed files with 19 additions and 16 deletions

View File

@@ -63,6 +63,12 @@ http://{$APACHE_HOST}.nextcloud-aio:23973, # For Collabora callback and WOPI req
reverse_proxy {$WHITEBOARD_HOST}:3002
}
# Windmill
route /windmill/* {
uri strip_prefix /windmill
reverse_proxy {$WINDMILL_HOST}:8000
}
# HaRP (ExApps)
route /exapps/* {
reverse_proxy {$HARP_HOST}:8780

View File

@@ -60,14 +60,10 @@ if [ -z "$ADDITIONAL_TRUSTED_DOMAIN" ]; then
fi
echo "$CADDYFILE" > /tmp/Caddyfile
# Add windmill site if windmill is enabled
if [ "$WINDMILL_ENABLED" = "yes" ]; then
cat >> /tmp/Caddyfile << 'WINDMILL_EOF'
https://{$NC_DOMAIN}:3100 {
reverse_proxy {$WINDMILL_HOST}:8000
}
WINDMILL_EOF
# Remove windmill route if windmill is not enabled
if [ "$WINDMILL_ENABLED" != "yes" ]; then
CADDYFILE="$(sed '/# Windmill/{N;N;N;N;d}' /tmp/Caddyfile)"
echo "$CADDYFILE" > /tmp/Caddyfile
fi
# Fix the Caddyfile format

View File

@@ -1099,7 +1099,7 @@ if [ "$WINDMILL_ENABLED" = 'yes' ]; then
elif [ "$SKIP_UPDATE" != 1 ]; then
php /var/www/html/occ app:update windmill
fi
php /var/www/html/occ config:app:set windmill windmill_url --value="https://$NC_DOMAIN:3100"
php /var/www/html/occ config:app:set windmill windmill_url --value="https://$NC_DOMAIN/windmill"
php /var/www/html/occ config:app:set windmill windmill_instance_url --value="http://$WINDMILL_HOST:8000"
else
if [ "$REMOVE_DISABLED_APPS" = yes ] && [ -d "/var/www/html/custom_apps/windmill" ]; then

View File

@@ -36,11 +36,6 @@
"ip_binding": "%APACHE_IP_BINDING%",
"port_number": "%APACHE_PORT%",
"protocol": "udp"
},
{
"ip_binding": "%APACHE_IP_BINDING%",
"port_number": "3100",
"protocol": "tcp"
}
],
"internal_port": "%APACHE_PORT%",
@@ -981,7 +976,7 @@
"retries": 3
},
"environment": [
"BASE_URL=https://%NC_DOMAIN%:3100",
"BASE_URL=https://%NC_DOMAIN%/windmill",
"TZ=%TIMEZONE%",
"NUM_WORKERS=1",
"MODE=standalone",

View File

@@ -41,4 +41,10 @@ document.addEventListener("DOMContentLoaded", function(event) {
// Whiteboard
let whiteboard = document.getElementById("whiteboard");
whiteboard.disabled = true;
// Windmill
let windmill = document.getElementById("windmill");
if (windmill) {
windmill.disabled = true;
}
});

View File

@@ -232,7 +232,7 @@
data-initial-state="false"
{% endif %}
>
<label for="windmill">Windmill (workflow automation, needs port 3100 TCP open/forwarded in your firewall/router. Access the Windmill UI at <code>https://{{ domain }}:3100</code>)</label>
<label for="windmill">Windmill (workflow automation. Access the Windmill UI at <code>https://{{ domain }}/windmill</code>)</label>
</p>
<input class="options-form-submit" type="submit" value="Save changes" />
</form>