Closed Gill-Bates closed 2 years ago
What do the logs say?
Solved by adding WorkingDirectory=/etc/spiderfoot
in my systemd-Configuration.
Working Solution:
[Unit]
Description=Spiderfoot
After=multi-user.target network-online.target
[Service]
Type=simple
Restart=always
User=www-data
WorkingDirectory=/etc/spiderfoot
ExecStart=python3 /etc/spiderfoot/sf.py -l 127.0.0.1:5001
[Install]
WantedBy=default.target
I want to run Spiderfoot as a systemd service and using nginx as a ReverseProxy
When I run Spiderfoot from the Console, nginx works as expected:
python3 ./etc/spiderfoot/sf.py -l 127.0.0.1:5001
But when I run spiderfoot as a systemd service,
I get an error in my browser:
Any idea what going on here?