-
-
Save prantlf/a30e1c94b395ecf97ff6164d3d8179d6 to your computer and use it in GitHub Desktop.
Revisions
-
prantlf revised this gist
Sep 29, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -31,7 +31,7 @@ http { server { # Serve the content at http://localhost:9001. server_name localhost; listen 9001; # Serve files from the current directory and its descenadants. root .; -
prantlf revised this gist
Sep 29, 2019 . 1 changed file with 3 additions and 5 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,5 @@ # Simple development setup to serve a directory at http://localhost:9001. # Start nginx in the directory to serve with `nginx -c ~/nginx.conf`. # When using a laptop with an above average equipment. 2 workers # significantly increase the throughput. 4 workers still help @@ -33,7 +31,7 @@ http { server { # Serve the content at http://localhost:9001. server_name localhost; listen 8888; # Serve files from the current directory and its descenadants. root .; -
prantlf revised this gist
Aug 31, 2019 . 1 changed file with 50 additions and 18 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,21 +1,53 @@ # Extremely basic development setup to serve the current directory # at http://localhost:9001. # Start nginx in this directory with `nginx -p . -c nginx.conf`. # Stop nginx with `nginx -p . -s stop`. # When using a laptop with an above average equipment. 2 workers # significantly increase the throughput. 4 workers still help # noticeably. The server slows down With more than 6 workers. worker_processes 2; events { accept_mutex off; } # Run as a foreground process and print errors on the console. daemon off; error_log stderr; http { # Serve files with correct mimetypes on OSX. The location may have to # be adjusted depending on your OS and nginx installation. include /usr/local/etc/nginx/mime.types; # Improve the speed of processing requests, even a little. access_log off; # Optimise serving lots of static files in a quick pace. Share buffers # betweek kernel and user spaces. Utilise the full TCP packet length. sendfile on; sendfile_max_chunk 1m; tcp_nopush on; tcp_nodelay on; server { # Serve the content at http://localhost:9001. server_name localhost; listen 9001; # Serve files from the current directory and its descenadants. root .; # Generate directory listings for paths ending with /. autoindex on; # Enable the HTTP response compression. gzip on; # Prevent the browser from fetching the content again if the page reloads # very quickly. 5s should be short enough for switching to an editor, # saving a change, switching back to the browser and reloading the page. expires 5; # Do not compute file content or state hashes. The last modification time # with the usual file system precision 2s should be enough to support # the content validation. etag off; } } -
foxxyz revised this gist
Sep 29, 2015 . 1 changed file with 12 additions and 10 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -4,16 +4,18 @@ events {} http { # Serve files with correct mimetypes on OSX # location may have to be adjusted depending on your OS and nginx install include /usr/local/etc/nginx/mime.types; server { listen 9001; access_log http.access.log; error_log http.error.log; root .; location / { } } } -
foxxyz created this gist
Sep 29, 2015 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ # Extremely basic development setup to serve the current directory at http://localhost:9001 # Start nginx in this directory with `nginx -p . -c nginx.conf` # Stop nginx with `nginx -p . -s stop` events {} http { include /usr/local/etc/nginx/mime.types; server { listen 9001; access_log http.access.log; error_log http.error.log; root .; location / { } } }