I cannot seem to get this application to work. I have it installed via pip using virtualenv. I do not have anything in my modules-enabled folder, but the nginx.conf in the second command does exist. Please let me know if there are any other details needed.
(gixy) root@nginx-proxy .../gixy/bin# ./gixy
[nginx_parser] WARNING File not found: /etc/nginx/modules-enabled/*.conf
Traceback (most recent call last):
File "/opt/gixy/bin/./gixy", line 8, in
sys.exit(main())
^^^^^^
File "/opt/gixy/lib/python3.11/site-packages/gixy/cli/main.py", line 168, in main
yoda.audit(path, fdata, is_stdin=False)
File "/opt/gixy/lib/python3.11/site-packages/gixy/core/manager.py", line 24, in audit
self.root = parser.parse(content=file_data.read(), path_info=file_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/gixy/lib/python3.11/site-packages/gixy/parser/nginx_parser.py", line 51, in parse
self.parse_block(parsed, root)
File "/opt/gixy/lib/python3.11/site-packages/gixy/parser/nginx_parser.py", line 63, in parse_block
directive_inst = self.directive_factory(parsed_type, parsed_name, parsed_args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(gixy) root@nginx-proxy .../gixy/bin# ./gixy -c /etc/nginx/nginx.conf
usage: gixy [-h] [-c CONFIG_FILE] [--write-config CONFIG_OUTPUT_PATH] [-v] [-l] [-f {console,json,text}] [-o OUTPUT_FILE] [-d] [--tests TESTS] [--skips SKIPS]
[--disable-includes] [--origins-domains domains] [--origins-https-only https_only] [--add-header-redefinition-headers headers]
[nginx.conf ...]
gixy: error: unrecognized arguments: --user=www-data; --worker_processes=auto; --pid=/run/nginx.pid; --error_log=/var/log/nginx-ramdisk/error.log; --include=/etc/nginx/allow-cloudflare-only.conf; --events={ --worker_connections=768; --}=true --http={ --'"$http_host"="$upstream_response_time"' --'"$http_referer"="$http_user_agent"'; --map=$http_x_forwarded_for $real_client_ip { --~^(\d+.\d+.\d+.\d+)=$1; --default=$http_cf_connecting_ip; --error_page=403 = /403.html; --sendfile=on; --tcp_nopush=on; --types_hash_max_size=2048; --ssl_protocols=TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; --ssl_prefer_server_ciphers=on; --access_log=/var/log/nginx-ramdisk/access.log custom_log_format; --server_names_hash_bucket_size=64; --limit_req_zone=$binary_remote_addr zone=mylimit:10m rate=5r/s; --limit_conn_zone=$binary_remote_addr zone=conn_limit:10m; --client_body_timeout=10s; --client_header_timeout=10s; --keepalive_timeout=10s; --send_timeout=10s; --client_max_body_size=1m; --proxy_cache_path=/data/nginx/cache levels=1:2 keys_zone=cache_zone:10m max_size=10g inactive=60m use_temp_path=off; --client_body_buffer_size=16k; --large_client_header_buffers=4 16k;
I cannot seem to get this application to work. I have it installed via pip using virtualenv. I do not have anything in my modules-enabled folder, but the nginx.conf in the second command does exist. Please let me know if there are any other details needed.
(gixy) root@nginx-proxy .../gixy/bin# ./gixy
[nginx_parser] WARNING File not found: /etc/nginx/modules-enabled/*.conf
Traceback (most recent call last):
File "/opt/gixy/bin/./gixy", line 8, in
sys.exit(main())
^^^^^^
File "/opt/gixy/lib/python3.11/site-packages/gixy/cli/main.py", line 168, in main
yoda.audit(path, fdata, is_stdin=False)
File "/opt/gixy/lib/python3.11/site-packages/gixy/core/manager.py", line 24, in audit
self.root = parser.parse(content=file_data.read(), path_info=file_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/gixy/lib/python3.11/site-packages/gixy/parser/nginx_parser.py", line 51, in parse
self.parse_block(parsed, root)
File "/opt/gixy/lib/python3.11/site-packages/gixy/parser/nginx_parser.py", line 63, in parse_block
directive_inst = self.directive_factory(parsed_type, parsed_name, parsed_args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(gixy) root@nginx-proxy .../gixy/bin# ./gixy -c /etc/nginx/nginx.conf
usage: gixy [-h] [-c CONFIG_FILE] [--write-config CONFIG_OUTPUT_PATH] [-v] [-l] [-f {console,json,text}] [-o OUTPUT_FILE] [-d] [--tests TESTS] [--skips SKIPS]
[--disable-includes] [--origins-domains domains] [--origins-https-only https_only] [--add-header-redefinition-headers headers]
[nginx.conf ...]
gixy: error: unrecognized arguments: --user=www-data; --worker_processes=auto; --pid=/run/nginx.pid; --error_log=/var/log/nginx-ramdisk/error.log; --include=/etc/nginx/allow-cloudflare-only.conf; --events={ --worker_connections=768; --}=true --http={ --'"$http_host"="$upstream_response_time"' --'"$http_referer"="$http_user_agent"'; --map=$http_x_forwarded_for $real_client_ip { --~^(\d+.\d+.\d+.\d+)=$1; --default=$http_cf_connecting_ip; --error_page=403 = /403.html; --sendfile=on; --tcp_nopush=on; --types_hash_max_size=2048; --ssl_protocols=TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; --ssl_prefer_server_ciphers=on; --access_log=/var/log/nginx-ramdisk/access.log custom_log_format; --server_names_hash_bucket_size=64; --limit_req_zone=$binary_remote_addr zone=mylimit:10m rate=5r/s; --limit_conn_zone=$binary_remote_addr zone=conn_limit:10m; --client_body_timeout=10s; --client_header_timeout=10s; --keepalive_timeout=10s; --send_timeout=10s; --client_max_body_size=1m; --proxy_cache_path=/data/nginx/cache levels=1:2 keys_zone=cache_zone:10m max_size=10g inactive=60m use_temp_path=off; --client_body_buffer_size=16k; --large_client_header_buffers=4 16k;