{"id":26572454,"url":"https://github.com/gharib110/nginx-cheating","last_synced_at":"2025-03-23T00:34:45.491Z","repository":{"id":225462735,"uuid":"766060328","full_name":"Gharib110/Nginx-Cheating","owner":"Gharib110","description":"Nginx Cheats !","archived":false,"fork":false,"pushed_at":"2024-03-05T18:31:22.000Z","size":28,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-03-05T23:23:53.235Z","etag":null,"topics":["nginx","nginx-configuration","nginx-load-balance","nginx-php-fpm","nginx-proxy","nginx-reverse-proxy","nginx-server"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Gharib110.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-03-02T08:19:12.000Z","updated_at":"2024-03-02T22:02:50.000Z","dependencies_parsed_at":"2024-03-02T09:31:19.610Z","dependency_job_id":"ae9ca14c-86be-475c-af8e-e8667b19ec8d","html_url":"https://github.com/Gharib110/Nginx-Cheating","commit_stats":null,"previous_names":["gharib110/nginx-cheating"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gharib110%2FNginx-Cheating","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gharib110%2FNginx-Cheating/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gharib110%2FNginx-Cheating/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gharib110%2FNginx-Cheating/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Gharib110","download_url":"https://codeload.github.com/Gharib110/Nginx-Cheating/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245040234,"owners_count":20551297,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nginx","nginx-configuration","nginx-load-balance","nginx-php-fpm","nginx-proxy","nginx-reverse-proxy","nginx-server"],"created_at":"2025-03-23T00:34:28.612Z","updated_at":"2025-03-23T00:34:45.456Z","avatar_url":"https://github.com/Gharib110.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nginx-Cheating\nNginx Cheats !\n\n## The Base Configurations When You Install Nginx\n- Use nginx.org packages or install it from source by compiling it !\n```bash\napt install curl gnupg2 ca-certificates lsb-release ubuntu-keyring\n\ncurl https://nginx.org/keys/nginx_signing.key | gpg --dearmor \\\n    | sudo tee /usr/share/keyrings/nginx-archive-keyring.gpg \u003e/dev/null\n\ngpg --dry-run --quiet --no-keyring --import --import-options import-show /usr/share/keyrings/nginx-archive-keyring.gpg\n\necho \"deb [signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] \\\nhttp://nginx.org/packages/ubuntu `lsb_release -cs` nginx\" \\\n    | sudo tee /etc/apt/sources.list.d/nginx.list\n\necho -e \"Package: *\\nPin: origin nginx.org\\nPin: release o=nginx\\nPin-Priority: 900\\n\" \\\n    | sudo tee /etc/apt/preferences.d/99nginx\n\napt-get update\n\napt install nginx-full\n```\n- Other configurations in Confs directory !\n- Try to inspect each line of `` nginx.conf `` file to get familiar yourself with it, then take look at Confs directory\n```bash\nuser www-data;\nworker_processes auto; # Number of process that is set to auto which is based on the number of the CPUs of your server\npid /run/nginx.pid;\ninclude /etc/nginx/modules-enabled/*.conf;\nload_module module/ngx_mp4_module.so; # mp4 module if you need it\nload_module module/ngx_http_image.so; # image module if you need it\n\nevents {\n        worker_connections 768; # The number of your Worker connections\n        # multi_accept on;\n}\n\nhttp {\n\n        ##\n        # Basic Settings\n        ##\n\n        sendfile on;\n        tcp_nopush off;\n        types_hash_max_size 2048;\n        server_tokens on; # Hide the version of Nginx that you use !\n\n        # server_names_hash_bucket_size 64;\n        # server_name_in_redirect off;\n\n        include /etc/nginx/mime.types;\n        default_type application/octet-stream;\n\n        ##\n        # SSL Settings\n        ##\n\n        ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; # Dropping SSLv3, ref: POODLE\n        ssl_prefer_server_ciphers on;\n\n        ##\n        # Logging Settings\n        ##\n\n        access_log /var/log/nginx/access.log;\n        error_log /var/log/nginx/error.log;\n\n\n        ##\n        # FastCgi_Cache\n\n        fastcgi_cache_path /tmp/nginx_cache levels=1:2 keys_zone=MYCACHE:2048m inactive=60m;\n        fastcgi_cache_key \"$scheme$request_method$request_uri\";\n      \n        ##\n        # Gzip Settings\n        ##\n\n        gzip on;\n\n        # gzip_vary on;\n        # gzip_proxied any;\n        gzip_comp_level 4;\n        # gzip_buffers 16 8k;\n        # gzip_http_version 1.1;\n        gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;\n\n        ##\n        # Virtual Host Configs\n        ##\n\n        include /etc/nginx/conf.d/*.conf;\n        include /etc/nginx/sites-enabled/*;\n}\n\n\n#mail {\n#       # See sample authentication script at:\n#       # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript\n#\n#       # auth_http localhost/auth.php;\n#       # pop3_capabilities \"TOP\" \"USER\";\n#       # imap_capabilities \"IMAP4rev1\" \"UIDPLUS\";\n#\n#       server {\n#               listen     localhost:110;\n#               protocol   pop3;\n#               proxy      on;\n#       }\n#\n#       server {\n#               listen     localhost:143;\n#               protocol   imap;\n#               proxy      on;\n#       }\n#}\n```\n\n## NGINX Amplify\n```bash\ncurl -L -O https://github.com/nginxinc/nginx-amplify-agent/raw/master/packages/install.sh\n\nwget https://github.com/nginxinc/nginx-amplify-agent/raw/master/packages/install.sh\n\nAPI_KEY='xxxxxxx' sh ./install.sh\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgharib110%2Fnginx-cheating","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgharib110%2Fnginx-cheating","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgharib110%2Fnginx-cheating/lists"}