Skip to content

Instantly share code, notes, and snippets.

@eduardvercaemer
Created August 24, 2023 01:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eduardvercaemer/bfcab940a242af3f9eb480be0290c89a to your computer and use it in GitHub Desktop.
Save eduardvercaemer/bfcab940a242af3f9eb480be0290c89a to your computer and use it in GitHub Desktop.
Minimal nginx config file for regular user
# nginx -p "$PWD" -c nginx/nginx.conf
worker_processes 1;
error_log stderr;
daemon off;
pid nginx/nginx.pid;
events {
worker_connections 512;
}
http {
access_log /dev/stdout;
include /etc/nginx/mime.types;
default_type application/octet-stream;
sendfile on;
gzip on;
server {
listen 8080 default;
server_name _;
root public;
index index.html;
location / {
try_files $uri $uri/ =404;
}
}
client_body_temp_path /tmp/client_body;
proxy_temp_path /tmp/proxy_temp;
fastcgi_temp_path /tmp/fastcgi_temp;
scgi_temp_path /tmp/scgi_temp;
uwsgi_temp_path /tmp/uwsgi_temp;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment