diff options
Diffstat (limited to 'files/arts/software/etherpad/nginx.conf')
-rw-r--r-- | files/arts/software/etherpad/nginx.conf | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/files/arts/software/etherpad/nginx.conf b/files/arts/software/etherpad/nginx.conf new file mode 100644 index 0000000..79d93d5 --- /dev/null +++ b/files/arts/software/etherpad/nginx.conf | |||
@@ -0,0 +1,53 @@ | |||
1 | #user nobody; | ||
2 | worker_processes 1; | ||
3 | |||
4 | #error_log logs/error.log; | ||
5 | #error_log logs/error.log notice; | ||
6 | #error_log logs/error.log info; | ||
7 | |||
8 | #pid logs/nginx.pid; | ||
9 | |||
10 | events { | ||
11 | worker_connections 1024; | ||
12 | } | ||
13 | |||
14 | http { | ||
15 | include mime.types; | ||
16 | default_type application/octet-stream; | ||
17 | |||
18 | #log_format main '$remote_addr - $remote_user [$time_local] "$request" ' | ||
19 | # '$status $body_bytes_sent "$http_referer" ' | ||
20 | # '"$http_user_agent" "$http_x_forwarded_for"'; | ||
21 | |||
22 | #access_log logs/access.log main; | ||
23 | |||
24 | sendfile on; | ||
25 | #tcp_nopush on; | ||
26 | |||
27 | #keepalive_timeout 0; | ||
28 | keepalive_timeout 65; | ||
29 | |||
30 | #gzip on; | ||
31 | |||
32 | server { | ||
33 | listen 80; | ||
34 | server_name pads.domain.tld *.pads.domain.tld; | ||
35 | include nginx-etherpad.conf; | ||
36 | } | ||
37 | |||
38 | server { | ||
39 | listen 443; | ||
40 | |||
41 | ssl on; | ||
42 | ssl_certificate pads.domain.tld.pem; | ||
43 | ssl_certificate_key pads.domain.tld.pem; | ||
44 | |||
45 | ssl_session_timeout 5m; | ||
46 | |||
47 | ssl_protocols SSLv2 SSLv3 TLSv1; | ||
48 | ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP; | ||
49 | ssl_prefer_server_ciphers on; | ||
50 | include nginx-etherpad.conf; | ||
51 | } | ||
52 | } | ||
53 | |||