I have been running deluged and deluge-web successfully using NSSM for a number of years. I am running on Windows Serve 2016.
I am attempting to run the deluge-web service with a base URL. The switch "--base=[path]" or "-b [path]" are not recognised or actioned by the deluge-web-debug program. Here are my tests and results.
Baseline
Confirm option exists
Output
Code: Select all
C:\Windows\system32>"C:\Program Files (x86)\Deluge\deluge-web-debug.exe" -h
Usage: deluge-web-debug [options] [actions]
Options:
-h, --help show this help message and exit
-v, --version Show program's version number and exit
Common Options:
-c CONFIG, --config=CONFIG
Set the config folder location
-l LOGFILE, --logfile=LOGFILE
Output to designated logfile instead of stdout
-L LOGLEVEL, --loglevel=LOGLEVEL
Set the log level: none, info, warning, error,
critical, debug
-q, --quiet Sets the log level to 'none', this is the same as `-L
none`
Web Options:
[b]-b BASE, --base=BASE
Set the base path that the ui is running on (proxying)[/b]
-f, --fork Fork the web interface process into the background
-i INTERFACE, --interface=INTERFACE
Binds the webserver to a specific IP address
-p PORT, --port=PORT
Sets the port to be used for the webserver
--profile Profile the web server code
--no-ssl Forces the webserver to disable ssl
--ssl Forces the webserver to use ssl
Executable deluge-web-debug.exe supports the --base or -b options.
Test 1
Use "--base" and no leading or trailing forward slashes
Output
Code: Select all
C:\Windows\system32>"C:\Program Files (x86)\Deluge\deluge-web-debug.exe" --loglevel="info" --base="deluge"
[INFO ] 10:50:37 ui:124 Deluge ui 1.3.15
[INFO ] 10:50:37 ui:127 Starting web ui..
[INFO ] 10:50:38 server:666 Starting server in PID 9236.
[INFO ] 10:50:39 server:679 Serving on 0.0.0.0:8112 view at http://0.0.0.0:8112
[INFO ] 10:50:48 server:696 Shutting down webserver
Accessing http://localhost:8112/ returned a blank page with html headers
Accessing http://localhost:8112/deluge displayed "No Such Resource | No such child resource."
Test 2
Use "--base" and a leading forward slash but no trailing forward slash
Output
Code: Select all
C:\Windows\system32>"C:\Program Files (x86)\Deluge\deluge-web-debug.exe" --loglevel="info" --base="/deluge"
[INFO ] 10:50:55 ui:124 Deluge ui 1.3.15
[INFO ] 10:50:55 ui:127 Starting web ui..
[INFO ] 10:50:57 server:666 Starting server in PID 12032.
[INFO ] 10:50:57 server:679 Serving on 0.0.0.0:8112 view at http://0.0.0.0:8112
[INFO ] 10:51:06 server:696 Shutting down webserver
Accessing http://localhost:8112/ returned a blank page with html headers
Accessing http://localhost:8112/deluge displayed "No Such Resource | No such child resource."
Test 3
Use "--base" and both a leading forward slash and a trailing forward slash
Output
Code: Select all
C:\Windows\system32>"C:\Program Files (x86)\Deluge\deluge-web-debug.exe" --loglevel="info" --base="/deluge/"
[INFO ] 10:51:18 ui:124 Deluge ui 1.3.15
[INFO ] 10:51:18 ui:127 Starting web ui..
[INFO ] 10:51:20 server:666 Starting server in PID 11532.
[INFO ] 10:51:20 server:679 Serving on 0.0.0.0:8112 view at http://0.0.0.0:8112
[INFO ] 10:51:50 server:696 Shutting down webserver
Accessing http://localhost:8112/ returned a blank page with html headers
Accessing http://localhost:8112/deluge displayed "No Such Resource | No such child resource."
Note that the above tests were done with both --base="[base path]" and --base=[base path] with the same results. The use of double quotes or no quotes produced the same results.
Test 4
Use "-b" and no leading or trailing forward slashes
Output
Code: Select all
C:\Windows\system32>"C:\Program Files (x86)\Deluge\deluge-web-debug.exe" --loglevel="info" -b deluge
[INFO ] 10:51:59 ui:124 Deluge ui 1.3.15
[INFO ] 10:51:59 ui:127 Starting web ui..
[INFO ] 10:52:01 server:666 Starting server in PID 11168.
[INFO ] 10:52:01 server:679 Serving on 0.0.0.0:8112 view at http://0.0.0.0:8112
[INFO ] 10:52:08 server:696 Shutting down webserver
Accessing http://localhost:8112/ returned a blank page with html headers
Accessing http://localhost:8112/deluge displayed "No Such Resource | No such child resource."
Test 5
Use "-b" and a leading forward slash but no trailing forward slash
Output
Code: Select all
C:\Windows\system32>"C:\Program Files (x86)\Deluge\deluge-web-debug.exe" --loglevel="info" -b /deluge
[INFO ] 10:52:16 ui:124 Deluge ui 1.3.15
[INFO ] 10:52:16 ui:127 Starting web ui..
[INFO ] 10:52:18 server:666 Starting server in PID 11304.
[INFO ] 10:52:18 server:679 Serving on 0.0.0.0:8112 view at http://0.0.0.0:8112
[INFO ] 10:52:22 server:696 Shutting down webserver
Accessing http://localhost:8112/ returned a blank page with html headers
Accessing http://localhost:8112/deluge displayed "No Such Resource | No such child resource."
Test 6
Use "-b" and both a leading forward slash and a trailing forward slash
Output
Code: Select all
C:\Windows\system32>"C:\Program Files (x86)\Deluge\deluge-web-debug.exe" --loglevel="info" -b /deluge/
[INFO ] 10:52:29 ui:124 Deluge ui 1.3.15
[INFO ] 10:52:29 ui:127 Starting web ui..
[INFO ] 10:52:31 server:666 Starting server in PID 4176.
[INFO ] 10:52:32 server:679 Serving on 0.0.0.0:8112 view at http://0.0.0.0:8112
[INFO ] 10:52:39 server:696 Shutting down webserver
Accessing http://localhost:8112/ returned a blank page with html headers
Accessing http://localhost:8112/deluge displayed "No Such Resource | No such child resource."
Further test results to follow.