Initial commit - forked from the corresponding Smartfront repositories.
This commit is contained in:
5
.templates/nginx/.nginx/.gitignore
vendored
Normal file
5
.templates/nginx/.nginx/.gitignore
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
# Ignore everything else in this directory.
|
||||
*
|
||||
!.gitignore
|
||||
!_default.conf
|
||||
!_general.conf
|
14
.templates/nginx/.nginx/_default.conf
Normal file
14
.templates/nginx/.nginx/_default.conf
Normal file
@ -0,0 +1,14 @@
|
||||
# A restrictive default virtualhost configuration.
|
||||
|
||||
server {
|
||||
listen 80 default_server;
|
||||
server_name _;
|
||||
|
||||
root /var/www/html;
|
||||
index index.html index.htm index.nginx-debian.html;
|
||||
|
||||
location / {
|
||||
default_type text/html;
|
||||
return 404 "<span style='font-size: large'>$hostname</span>";
|
||||
}
|
||||
}
|
14
.templates/nginx/.nginx/_general.conf
Normal file
14
.templates/nginx/.nginx/_general.conf
Normal file
@ -0,0 +1,14 @@
|
||||
# NGINX general configuration for Docker services.
|
||||
|
||||
# Doesn't explore unnecessary info.
|
||||
server_tokens off;
|
||||
# Depends on ngx_http_security_headers_module.so
|
||||
#hide_server_tokens on;
|
||||
|
||||
# https://amalgjose.com/2020/05/15/how-to-set-the-allowed-url-length-for-a-nginx-request-error-code-414-uri-too-large/
|
||||
large_client_header_buffers 4 32k;
|
||||
|
||||
# https://serverfault.com/questions/602201/nginx-possible-bug-with-dashes-in-server-name
|
||||
# https://trac.nginx.org/nginx/ticket/571
|
||||
#server_names_hash_bucket_size 64;
|
||||
|
Reference in New Issue
Block a user