Closed naporitann1 closed 1 year ago
@naporitann1 hi, nice to hear from you, so, faraday has a guide to spin it up with nginx, you could find it in Faraday Docs so if you are going to use nginx, first of all you should point all the locations to 127.0.0.1
Server ini should be:
[faraday_server]
port = 5985
bind_address = localhost
debug = false
session_timeout = 12
api_token_expiration = 43200
secret_key = #dont change the value that is here
agent_registration_secret = #dont change the value that is here
[logo]
[logger]
use_rfc5424_formatter = false
[limiter]
enabled = True
login_limit = 10/minutes
[storage]
path = /Users/faraday/.faraday/storage
[database]
connection_string = postgresql+psycopg2://faraday_postgresql:sqwtSlDZddH7mzYvW9kf3nWZ9@localhost/faraday
nginx config:
Same as yours.
Check nginx config:
nginx -t
Start nginx service
sudo systemctl start nginx
please remove the "SSL" section that you see in server.ini, it shouldnt be there.
Cheers!
Hello! Thank you for answering my question. I set it up just like you said and it worked like a lie until now! It really helped me a lot.
Hello.I am a beginner and also use translations, so please forgive me if my writing is poor. I have built the nginx setup according to the official instructions, but the server is still only running at http. Looking at the output of the "faraday-server" run, it does not appear to be running through nginx to begin with. Also, the configuration file generated by "generate-nginx-config" pointed to a directory as root that did not exist, at least in my environment, so I specified www, which was the only one in my environment, but now it starts with https, but login fails (When I click on the login button, it posts to a non-existent page called /usr/share/faraday/server/www/_api/login). What did I do wrong?
Version
Faraday v4.6.0
Description: Kali GNU/Linux Rolling Release: 2023.3
Debug TraceBack
generated nginx Configfile
server.ini
Operating System
└─$ lsb_release -a No LSB modules are available. Distributor ID: Kali Description: Kali GNU/Linux Rolling Release: 2023.3 Codename: kali-rolling