Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9e2784f
commit 2e0b0e6
Showing
1 changed file
with
36 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#! --------------------------------------------------------------------------------------------------------------------- | ||
# This file is part of fleshgrinder/nginx-configuration. | ||
# | ||
# fleshgrinder/nginx-configuration is free software: you can redistribute it and/or modify it under the terms of the GNU | ||
# Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at | ||
# your option) any later version. | ||
# | ||
# fleshgrinder/nginx-configuration is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without | ||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public | ||
# License for more details. | ||
# | ||
# You should have received a copy of the GNU Affero General Public License along with fleshgrinder/nginx-configuration. | ||
# If not, see <https://www.gnu.org/licenses/agpl-3.0.html>. | ||
# ---------------------------------------------------------------------------------------------------------------------- | ||
|
||
# ---------------------------------------------------------------------------------------------------------------------- | ||
# Default server for client's which do not send the Host header. | ||
# | ||
# @author Richard Fussenegger <richard@fussenegger.info> | ||
# @copyright 2015 (c) Richard Fussenegger | ||
# @license https://www.gnu.org/licenses/agpl-3.0.html AGPLv3 | ||
# ---------------------------------------------------------------------------------------------------------------------- | ||
|
||
server { | ||
listen [::]:80 backlog=65536 default_server deferred ipv6only=off rcvbuf=16k sndbuf=512k; | ||
server_name _; | ||
return 403; | ||
} | ||
|
||
server { | ||
listen [::]:443 backlog=65536 default_server deferred ipv6only=off rcvbuf=16k sndbuf=512k spdy ssl; | ||
server_name _; | ||
ssl_certificate certificates/_/pem; | ||
ssl_certificate_key certificates/_/key; | ||
return 403; | ||
} |