Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mailinabox
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
mailinabox
Commits
834c42bc
Commit
834c42bc
authored
Sep 27, 2015
by
Joshua Tauberer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move nginx-ssl to be a global configuration file rather than including it into each server block
parent
6c8ee186
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
nginx-ssl.conf
conf/nginx-ssl.conf
+3
-3
nginx.conf
conf/nginx.conf
+0
-1
web.sh
setup/web.sh
+2
-1
No files found.
conf/nginx-ssl.conf
View file @
834c42bc
...
...
@@ -26,19 +26,19 @@
# but with a small exception (DES-CBC3-SHA) for IE8/XP users.
#
# Reference client: https://www.ssllabs.com/ssltest/analyze.html
ssl_prefer_server_ciphers
on
;
# ssl_prefer_server_ciphers on; # This is the default in Ubuntu 14.04/nginx 1.4.6 and it is an error to repeat it at the http level.
ssl_ciphers
'kEECDH+ECDSA+AES128 kEECDH+ECDSA+AES256 kEECDH+AES128 kEECDH+AES256 kEDH+AES128 kEDH+AES256 DES-CBC3-SHA +SHA !aNULL !eNULL !LOW !MD5 !EXP !DSS !PSK !SRP !kECDH !CAMELLIA !RC4 !SEED'
;
# Cut out (the old, broken) SSLv3 entirely.
# This **excludes IE6 users** and (apparently) Yandexbot.
# Just comment out if you need to support IE6, bless your soul.
ssl_protocols
TLSv1
.
2
TLSv1
.
1
TLSv1
;
#ssl_protocols TLSv1.2 TLSv1.1 TLSv1; # This is the default in Ubuntu 14.04/nginx 1.4.6 and it is an error to repeat it at the http level.
# Turn on session resumption, using a 10 min cache shared across nginx processes,
# as recommended by http://nginx.org/en/docs/http/configuring_https_servers.html
ssl_session_cache
shared
:
SSL
:
10
m
;
ssl_session_timeout
10
m
;
keepalive_timeout
70
;
#keepalive_timeout 70; # in Ubuntu 14.04/nginx 1.4.6 the default is 65, so plenty good
# Buffer size of 1400 bytes fits in one MTU.
# nginx 1.5.9+ ONLY
...
...
conf/nginx.conf
View file @
834c42bc
...
...
@@ -31,7 +31,6 @@ server {
ssl_certificate
$SSL_CERTIFICATE
;
ssl_certificate_key
$SSL_KEY
;
include
/etc/nginx/nginx-ssl.conf
;
# ADDITIONAL DIRECTIVES HERE
}
setup/web.sh
View file @
834c42bc
...
...
@@ -25,8 +25,9 @@ rm -f /etc/nginx/sites-enabled/default
# Copy in a nginx configuration file for common and best-practices
# SSL settings from @konklone. Replace STORAGE_ROOT so it can find
# the DH params.
rm
-f
/etc/nginx/nginx-ssl.conf
# we used to put it here
sed
"s#STORAGE_ROOT#
$STORAGE_ROOT
#"
\
conf/nginx-ssl.conf
>
/etc/nginx/
nginx-
ssl.conf
conf/nginx-ssl.conf
>
/etc/nginx/
conf.d/
ssl.conf
# Fix some nginx defaults.
# The server_names_hash_bucket_size seems to prevent long domain names!
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment