Skip to content

Instantly share code, notes, and snippets.

@nagypet
Created September 23, 2023 09:13
Show Gist options
  • Select an option

  • Save nagypet/1aa7e9c92f839c2507bfe5eac9f3a1a1 to your computer and use it in GitHub Desktop.

Select an option

Save nagypet/1aa7e9c92f839c2507bfe5eac9f3a1a1 to your computer and use it in GitHub Desktop.

Revisions

  1. nagypet created this gist Sep 23, 2023.
    31 changes: 31 additions & 0 deletions nginx.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,31 @@
    user nginx;
    worker_processes auto;

    error_log /var/log/nginx/error.log notice;
    pid /var/run/nginx.pid;


    events {
    worker_connections 1024;
    }


    http {
    include /etc/nginx/mime.types;
    default_type application/octet-stream;

    log_format main '$remote_addr - $remote_user [$time_local] "$request" '
    '$status $body_bytes_sent "$http_referer" '
    '"$http_user_agent" "$http_x_forwarded_for"';

    access_log /var/log/nginx/access.log main;

    sendfile on;
    #tcp_nopush on;

    keepalive_timeout 65;

    #gzip on;

    include /etc/nginx/conf.d/*.conf;
    }