Skip to content

Instantly share code, notes, and snippets.

@codesections
Created December 21, 2018 14:16
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 codesections/9ac6c81f5c123fedc9a2154237800bf5 to your computer and use it in GitHub Desktop.
Save codesections/9ac6c81f5c123fedc9a2154237800bf5 to your computer and use it in GitHub Desktop.
Simple nginx config for static site
user root;
worker_processes 4;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
keepalive_timeout 65;
server {
listen 3006;
server_name localhost;
location / {
root /home/dsock/rust/projects/server/public/;
index index.html index.htm;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment