Skip to content

Instantly share code, notes, and snippets.

@vishaldpatel
Created October 29, 2024 23:37
Show Gist options
  • Select an option

  • Save vishaldpatel/1aa05edfe345087e035b9fe00d779f6f to your computer and use it in GitHub Desktop.

Select an option

Save vishaldpatel/1aa05edfe345087e035b9fe00d779f6f to your computer and use it in GitHub Desktop.
Sample nginx config for the scenario where project specific configs will live inside sites-available / sites-enabled
#user http;
worker_processes 1;
events {
worker_connections 1024;
}
http {
include 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 logs/access.log main;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
include sites-enabled/*;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment