Created
August 24, 2023 01:34
-
-
Save eduardvercaemer/bfcab940a242af3f9eb480be0290c89a to your computer and use it in GitHub Desktop.
Minimal nginx config file for regular user
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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