-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Aligning with nginx docker image Fix #95
- Loading branch information
Showing
9 changed files
with
93 additions
and
82 deletions.
There are no files selected for viewing
This file contains 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 characters
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# ---------------------------------------------------------------------- | ||
# | Default behavior for unknown hosts | | ||
# ---------------------------------------------------------------------- | ||
# | ||
# Drop requests for unknown hosts | ||
# | ||
# If no default server is defined, nginx will use the first found server. | ||
# To prevent host header attacks, or other potential problems when an unknown | ||
# servername is used in a request, it's recommended to drop the request | ||
# returning 444 "no response". | ||
# | ||
# (1) In production, only secure hosts should be used (all `no-ssl` disabled). | ||
# If so, redirect first ANY request to a secure connexion before handling it | ||
# even if the host is unknown. | ||
# | ||
# https://observatory.mozilla.org/faq/ | ||
|
||
server { | ||
listen [::]:80 default_server deferred; | ||
listen 80 default_server deferred; | ||
|
||
server_name _; | ||
|
||
# (1) | ||
# return 301 https://$host$request_uri; | ||
return 444; | ||
} |
This file contains 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 characters
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# ---------------------------------------------------------------------- | ||
# | Config file for non-secure example.com host | | ||
# ---------------------------------------------------------------------- | ||
# | ||
# This file is a template for a non-secure nginx server. | ||
# This nginx server listen the `example.com` host and handle requests. | ||
# Remplace `example.com` with your hostname before enabling. | ||
|
||
# Choose between www and non-www, listen on the wrong one and redirect to | ||
# the right one. | ||
# https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/#server-name-if | ||
server { | ||
listen [::]:80; | ||
listen 80; | ||
|
||
server_name www.example.com; | ||
|
||
return 301 $scheme://example.com$request_uri; | ||
} | ||
|
||
server { | ||
# listen [::]:80 accept_filter=httpready; # for FreeBSD | ||
# listen 80 accept_filter=httpready; # for FreeBSD | ||
# listen [::]:80 deferred; # for Linux | ||
# listen 80 deferred; # for Linux | ||
listen [::]:80; | ||
listen 80; | ||
|
||
# The host name to respond to | ||
server_name example.com; | ||
|
||
# Path for static files | ||
root /var/www/example.com/public; | ||
|
||
# Custom error pages | ||
include h5bp/errors/custom_errors.conf; | ||
|
||
# Include the basic h5bp config set | ||
include h5bp/basic.conf; | ||
} |
This file contains 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 characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.