installing_docassemble_docker_image_desktop_windows_11_pro
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| installing_docassemble_docker_image_desktop_windows_11_pro [2026/07/27 22:31] – wikiadmin | installing_docassemble_docker_image_desktop_windows_11_pro [2026/07/27 22:42] (current) – wikiadmin | ||
|---|---|---|---|
| Line 73: | Line 73: | ||
| Step 2: Configure Apache on your Ubuntu Server. | Step 2: Configure Apache on your Ubuntu Server. | ||
| - | On your Ubuntu server, Apache needs the proxy extensions enabled to capture incoming requests and pass them to the Windows machine.Log into your Ubuntu machine and enable the proxy modules: | + | A. |
| bash | bash | ||
| Line 80: | Line 80: | ||
| sudo a2enmod proxy proxy_http proxy_wstunnel rewrite headers | sudo a2enmod proxy proxy_http proxy_wstunnel rewrite headers | ||
| </ | </ | ||
| + | |||
| + | B. Create or modify an Apache Virtual Host configuration file (e.g., / | ||
| + | |||
| + | Apache: | ||
| + | |||
| + | < | ||
| + | < | ||
| + | ServerName docassemble.yourdomain.local | ||
| + | |||
| + | ProxyRequests Off | ||
| + | ProxyPreserveHost On | ||
| + | |||
| + | # Forward standard HTTP traffic to Windows 11 | ||
| + | ProxyPass / http:// | ||
| + | ProxyPassReverse / http:// | ||
| + | |||
| + | # Handle WebSocket connections (Critical for Docassemble' | ||
| + | ProxyPass /wsws http:// | ||
| + | ProxyPassReverse /wsws http:// | ||
| + | |||
| + | # Security headers to ensure Docassemble maps links correctly | ||
| + | RequestHeader set X-Forwarded-Proto " | ||
| + | RequestHeader set X-Forwarded-Port " | ||
| + | |||
| + | ErrorLog ${APACHE_LOG_DIR}/ | ||
| + | CustomLog ${APACHE_LOG_DIR}/ | ||
| + | </ | ||
| + | |||
| + | </ | ||
| + | |||
| + | C. Enable the configuration and restart Apache: | ||
| + | |||
| + | bash | ||
| + | |||
| + | < | ||
| + | sudo a2ensite docassemble-proxy.conf | ||
| + | sudo systemctl restart apache2 | ||
| + | </ | ||
| + | |||
| + | Step 3: Update Docassemble' | ||
| + | |||
| + | Docassemble needs to know it is being accessed via a proxy domain so that it constructs external links, emails, and package management endpoints with the Ubuntu server' | ||
| + | |||
| + | A. Go to your web browser and open the configuration menu (once you can see it via the Ubuntu domain or the direct Windows IP). | ||
| + | |||
| + | B. Navigate to Configuration (System-wide configuration). | ||
| + | |||
| + | C. Add or update the following parameters: | ||
| + | |||
| + | yaml | ||
| + | |||
| + | < | ||
| + | external hostname: docassemble.yourdomain.local | ||
| + | behind https load balancer: false | ||
| + | </ | ||
| + | |||
| + | (Note: If you eventually secure your Ubuntu Apache proxy using SSL/TLS Let's Encrypt certificates, | ||
| + | |||
| + | D. Click Save and let the container restart its background services. | ||
| + | |||
| + | Troubleshooting Windows Firewall Blockages | ||
| + | |||
| + | By default, Windows 11 Firewall blocks unsolicited inbound traffic to ports even if Docker maps them. If your Ubuntu server gets a 502 Bad Gateway or Connection Timed Out when trying to contact the Windows IP: | ||
| + | |||
| + | A. Open Windows Defender Firewall with Advanced Security on your Windows 11 machine. | ||
| + | |||
| + | B. Click Inbound Rules -> New Rule. | ||
| + | |||
| + | C. Choose Port -> Select TCP -> Type 8080 into specific local ports. | ||
| + | |||
| + | D. Choose Allow the connection and apply it to your current network profile (Private domain recommended). | ||
| + | |||
| + | Are you planning to configure SSL/HTTPS on the Ubuntu Apache box right away, or do you want to test the routing over plain HTTP first? | ||
installing_docassemble_docker_image_desktop_windows_11_pro.1785191491.txt.gz · Last modified: 2026/07/27 22:31 by wikiadmin
