Skip to content

Instantly share code, notes, and snippets.

@dclobato
Created November 24, 2023 19:51
Show Gist options
  • Save dclobato/de0ff9e989a6ceda8c4c920b7a801edd to your computer and use it in GitHub Desktop.
Save dclobato/de0ff9e989a6ceda8c4c920b7a801edd to your computer and use it in GitHub Desktop.
nginx.conf básico
user www;
worker_processes auto;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
sendfile on;
access_log /var/log/nginx/access.log;
keepalive_timeout 3000;
server {
listen 0.0.0.0:80;
root /www;
index index.html index.htm;
server_name gateway.sjp.ifsp.edu.br;
client_max_body_size 32m;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /var/lib/nginx/html;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment