Updated examples

This commit is contained in:
WilliamMiceli
2018-12-09 18:04:58 -05:00
parent 6227eb85af
commit 4ae3f81d5e
9 changed files with 83 additions and 3 deletions
-3
View File
@@ -1,3 +0,0 @@
# Examples (Full)
These example files were directly copied from:
https://www.nginx.com/resources/wiki/start/topics/examples/full/
@@ -0,0 +1,7 @@
# Full Configuration Example
These example files were directly copied from:
https://www.nginx.com/resources/wiki/start/topics/examples/full/
They are **NOT** configured for this configuration, simply a generic reference.
Last updated: 9 December 2018
@@ -0,0 +1,3 @@
# Simple Static Content Example
This is an extremely simple configuration that works, close to what the default configuration would do.
This example does work with this Docker configuration, so it can simply be copied into the correct directory.
@@ -0,0 +1,48 @@
types {
text/html html htm shtml;
text/css css;
text/xml xml rss;
image/gif gif;
image/jpeg jpeg jpg;
application/x-javascript js;
text/plain txt;
text/x-component htc;
text/mathml mml;
image/png png;
image/x-icon ico;
image/x-jng jng;
image/vnd.wap.wbmp wbmp;
application/java-archive jar war ear;
application/mac-binhex40 hqx;
application/pdf pdf;
application/x-cocoa cco;
application/x-java-archive-diff jardiff;
application/x-java-jnlp-file jnlp;
application/x-makeself run;
application/x-perl pl pm;
application/x-pilot prc pdb;
application/x-rar-compressed rar;
application/x-redhat-package-manager rpm;
application/x-sea sea;
application/x-shockwave-flash swf;
application/x-stuffit sit;
application/x-tcl tcl tk;
application/x-x509-ca-cert der pem crt;
application/x-xpinstall xpi;
application/zip zip;
application/octet-stream deb;
application/octet-stream bin exe dll;
application/octet-stream dmg;
application/octet-stream eot;
application/octet-stream iso img;
application/octet-stream msi msp msm;
audio/mpeg mp3;
audio/x-realaudio ra;
video/mpeg mpeg mpg;
video/quicktime mov;
video/x-flv flv;
video/x-msvideo avi;
video/x-ms-wmv wmv;
video/x-ms-asf asx asf;
video/x-mng mng;
}
@@ -0,0 +1,25 @@
user nobody;
worker_processes 5; ## Default: 1
worker_rlimit_nofile 8192;
events {
worker_connections 4096; ## Default: 1024
}
http {
include /etc/nginx/mime.types;
index index.html;
default_type application/octet-stream;
sendfile on;
tcp_nopush on;
server {
listen 80;
server_name _;
# serve static files
location / {
root /usr/share/nginx/html;
}
}