1
0
mirror of https://github.com/Mailu/Mailu.git synced 2024-12-14 10:53:30 +02:00
Mailu/nginx/nginx.conf

44 lines
876 B
Nginx Configuration File
Raw Normal View History

user www-data;
worker_processes 1;
error_log /dev/stderr info;
2016-02-21 20:48:40 +02:00
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
2016-02-21 20:48:40 +02:00
include /etc/nginx/mime.types;
default_type application/octet-stream;
access_log /dev/stdout;
sendfile on;
keepalive_timeout 65;
server_tokens off;
server {
listen 80;
2016-02-20 22:55:22 +02:00
listen 443 ssl;
ssl_protocols TLSv1.1 TLSv1.2;
ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH';
ssl_prefer_server_ciphers on;
ssl_session_timeout 5m;
ssl_session_cache shared:SSL:50m;
ssl_certificate /certs/cert.pem;
ssl_certificate_key /certs/key.pem;
2016-02-20 22:55:22 +02:00
if ($scheme = http) {
return 301 https://$host$request_uri;
}
location / {
proxy_pass http://webmail;
2016-02-20 22:55:22 +02:00
}
location /admin {
proxy_pass http://admin;
}
}
}