#How can I change nginx location? xtream UI panel keeps nginx and php files in its own files.
1 messages · Page 1 of 1 (latest)
Thank you for getting in touch with your support request. To expedite a swift resolution, could you kindly provide the following information? Rest assured, we will respond promptly, and we greatly appreciate your patience. While you wait, please check the links below to see if this issue has been previously addressed. If you have managed to resolve it, please use run the command /resolve or press the green resolve button below.
If you possess any log files that you believe could be beneficial, please include them at this time. By default, CrowdSec logs to /var/log/, where you will discover a corresponding log file for each component.
If you have diligently followed one of our guides and hit a roadblock, please share the guide with us. This will help us assess if any adjustments are necessary to assist you further.
Please forward any screenshots depicting errors you encounter. Your visuals will provide us with a clear view of the issues you are facing.
Resolving How can I change nginx location? xtream UI panel keeps nginx and php files in its own files.
This has now been resolved. If you think this is a mistake please run /unresolve
Unresolving How can I change nginx location? xtream UI panel keeps nginx and php files in its own files.
This has now been unresolved.
Hey @rough locust can you elaborate how the question is relative to CrowdSec?
the problem is as follows, nginx configuration
/home/xui/bin/nginx/
Is it configured in ?
but how is this related to CrowdSec?
The config file of port and all processes is here
server ports coming out from here
I want to do nginx protection. but I have everything related to CrowdSec installed.
But when I attack, it passes easily.
Okay, so best to start to describe the problem as currently you just stating where xstream keeps it stuff which doesnt matter
I'm trying to figure out how to structure this. I couldn't find the necessary documents
okay, did you check the metrics?
okay, providing us the ouput helps as we cant magically see through your eye balls
If you want, I can send you the server information so that I can explain it to you in the best way. You can understand it much more easily.
well I just need to see the metrics thats all
Please write to me privately, I would like to send you the server information. I am operating with the test server. To understand the subject much better
we dont log on to people machines as a rule so please provide us the information we request
Okay so I see buckets for ssh, but if you run cscli metrics show acquisition do you see the nginx logs?
Okay so I dont see the nginx logs, do you know where they are configured to log? by default this is /var/log/nginx/ but it may change depending on config
how can i change it
Well firstly where is nginx logging too?
that just the error.log, do you know where the access.log is?
I'm checking
saves to the same location. It creates a log itself
this is for rtmp
but my guess is the rtmp is for tcp access logs?
in this way. users. It communicates with the url pattern. Username and password control is checked by mysql mariadb. If true, it allows. Nginx grants file access permission to the user it deems correct and the stream starts.
but what are you trying to detect as for rtmp espically on nginx access layer, there isnt much information we can derive from the logs cause typically its a tcp layer connection
I want to prevent username and password attacks.
Username, password and MAC address scraping attacks are coming
I could not find the necessary documentation regarding nginx and mariadb configuration.
well like I said depends what inside those nginx log files, cause if it just tcp layer stuff we cant really look at username / password stuff cause nginx doesnt know about them
but you can configure them as the documentation states https://docs.crowdsec.net/u/getting_started/post_installation/acquisition_new
I would like to ask one more question. How can I become security for mariadb? As a result, the username is returned with a query from SQL for password scraping.
filenames:
- "/home/xui/bin/nginx*/logs/*.log"
labels:
type: nginx
👍 ye then you can run sudo systemctl restart crowdsec
then if you sudo grep nginx /var/log/crowdsec.log
Okay, and if you give it little time and check cscli metrics show acquisition
okay and is the log files actually used?
cat /home/xui/nginx*/logs/*.log
if you run ls -la /home/xui/nginx/logs/
/home/xui/bin/nginx/
what is the file size and access times cause it doesnt seem like they are used
folder
Okay, but what are the file sizes and access times?
safe to say the access.log isnt actually used
so do you have access to the nginx configuration?
if you run with ls -la it can provide us more info
I meant the ls -la /home/xui/bin/nginx*/logs/*.log
okay and if you run grep -R "access_log" /home/xui/bin/nginx/conf/
I missed the -R flag
ahhh hence why there no access log
Since it was a ready-made pattern, I didn't pay any attention to it. So how can I add it?
so the question is do you want to log traffic that comes into the admin panel as this is configuration for the admin panel I guess
cause if people are streaming they are going through the rtmp no?
sample stream pattern in configuration file
In this way the user monitors the stream flow m3u
so /home/xui/www/ has an auth.php?
ahhh must be within /stream/
yeah but the nginx configuration has a shed ton of rewrites to get to /stream/auth.php so would be useful if you can dm me that file
I want to make sure there nothing that would explode if we turn on access logs
yeah if you can DM the auth.php file just want to make sure how it works before enabling the access logs
yes of course