Created
December 21, 2018 14:16
-
-
Save codesections/9ac6c81f5c123fedc9a2154237800bf5 to your computer and use it in GitHub Desktop.
Simple nginx config for static site
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
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