summaryrefslogtreecommitdiffstats
path: root/meta-webserver/recipes-httpd/nginx/files/default_server.site
diff options
context:
space:
mode:
authorAndré Draszik <andre.draszik@jci.com>2019-01-18 14:26:11 +0000
committerKhem Raj <raj.khem@gmail.com>2019-01-19 10:06:20 -0800
commit22e17bb10c589775b3196b07bde4912658a5dcbd (patch)
tree18e5216e96712f01c52a90f2a9f155a938e3952d /meta-webserver/recipes-httpd/nginx/files/default_server.site
parenta0eadda9106a22b1d7a7c98c4a97c8329171540f (diff)
downloadmeta-openembedded-22e17bb10c589775b3196b07bde4912658a5dcbd.tar.gz
nginx: configuration update
Restructure the main configuration file to simplify custom configuration: * support inclusion of configuration fragments from subdirectories: - /etc/nginx/modules-enabled/*.conf - /etc/nginx/conf.d/*.conf - /etc/nginx/sites-enabled/* * default site (port 80): - move into /etc/nginx/sites-available/default_server and enable via symlink in /etc/nginx/sites-enabled/ - listen on IPv6 - drop unneeded example fragments * configure and enable gzip * update TLS settings to drop SSLv3 and enable TLSv1.3 for some safer defaults * update remaining bits to follow Debian standard configuration https://salsa.debian.org/nginx-team/nginx/blob/62a54a8ba66ee6cc1b4f8a33dab9a6f27a3fdac4/debian/conf/nginx.conf * drop unneeded example configuration bits from /etc/nginx/*.default These changes, in particular the configuration fragment support allow to easily customise nginx based on individual requirements. In addition, it is now possible for other recipes / packages to drop fragments into the respective directories in /etc/nginx without having to meddle with /etc/nginx/nginx.conf Signed-off-by: André Draszik <andre.draszik@jci.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-webserver/recipes-httpd/nginx/files/default_server.site')
-rw-r--r--meta-webserver/recipes-httpd/nginx/files/default_server.site14
1 files changed, 14 insertions, 0 deletions
diff --git a/meta-webserver/recipes-httpd/nginx/files/default_server.site b/meta-webserver/recipes-httpd/nginx/files/default_server.site
new file mode 100644
index 0000000000..7a8a215cfa
--- /dev/null
+++ b/meta-webserver/recipes-httpd/nginx/files/default_server.site
@@ -0,0 +1,14 @@
1# Default server configuration
2server {
3 listen 80 default_server;
4 listen [::]:80 default_server;
5
6 root /var/www/localhost/html;
7
8 index index.html index.htm;
9
10 server_name _;
11
12 # redirect server error pages to the static page /50x.html
13 error_page 500 502 503 504 /50x.html;
14}