diff --git a/templates/Nginx/Examples-Full/README.md b/templates/Nginx/Examples-Full/README.md deleted file mode 100644 index e815f80..0000000 --- a/templates/Nginx/Examples-Full/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# Examples (Full) -These example files were directly copied from: -https://www.nginx.com/resources/wiki/start/topics/examples/full/ \ No newline at end of file diff --git a/templates/Nginx/Examples/Official-Full/README.md b/templates/Nginx/Examples/Official-Full/README.md new file mode 100644 index 0000000..2c5e5b7 --- /dev/null +++ b/templates/Nginx/Examples/Official-Full/README.md @@ -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 \ No newline at end of file diff --git a/templates/Nginx/Examples-Full/fastcgi.conf b/templates/Nginx/Examples/Official-Full/fastcgi.conf similarity index 100% rename from templates/Nginx/Examples-Full/fastcgi.conf rename to templates/Nginx/Examples/Official-Full/fastcgi.conf diff --git a/templates/Nginx/Examples-Full/mime.types b/templates/Nginx/Examples/Official-Full/mime.types similarity index 100% rename from templates/Nginx/Examples-Full/mime.types rename to templates/Nginx/Examples/Official-Full/mime.types diff --git a/templates/Nginx/Examples-Full/nginx.conf b/templates/Nginx/Examples/Official-Full/nginx.conf similarity index 100% rename from templates/Nginx/Examples-Full/nginx.conf rename to templates/Nginx/Examples/Official-Full/nginx.conf diff --git a/templates/Nginx/Examples-Full/proxy.conf b/templates/Nginx/Examples/Official-Full/proxy.conf similarity index 100% rename from templates/Nginx/Examples-Full/proxy.conf rename to templates/Nginx/Examples/Official-Full/proxy.conf diff --git a/templates/Nginx/Examples/SimpleStatic/README.md b/templates/Nginx/Examples/SimpleStatic/README.md new file mode 100644 index 0000000..e530b05 --- /dev/null +++ b/templates/Nginx/Examples/SimpleStatic/README.md @@ -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. \ No newline at end of file diff --git a/templates/Nginx/Examples/SimpleStatic/mime.types b/templates/Nginx/Examples/SimpleStatic/mime.types new file mode 100644 index 0000000..62bd4b6 --- /dev/null +++ b/templates/Nginx/Examples/SimpleStatic/mime.types @@ -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; +} \ No newline at end of file diff --git a/templates/Nginx/Examples/SimpleStatic/nginx.conf b/templates/Nginx/Examples/SimpleStatic/nginx.conf new file mode 100644 index 0000000..c287728 --- /dev/null +++ b/templates/Nginx/Examples/SimpleStatic/nginx.conf @@ -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; + } +} \ No newline at end of file