Created
March 12, 2016 18:53
-
-
Save inkrement/664ed0b716724f39b0be to your computer and use it in GitHub Desktop.
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 automatically installed on 2016-03-11T16:20:06.126943 | |
upstream modoboa { | |
server unix:/var/run/uwsgi/app/modoboa_instance/socket fail_timeout=0; | |
} | |
server { | |
listen 80; | |
server_name mail.justrocketscience.com; | |
location / { | |
rewrite ^ https://$server_name$request_uri? permanent; | |
} | |
location /.well-known/acme-challenge/ { | |
alias /var/www/challenges/; | |
try_files $uri =404; | |
} | |
} | |
server { | |
listen 443 ssl; | |
server_name mail.justrocketscience.com; | |
root /srv/modoboa/instance; | |
ssl_certificate /etc/ssl/certs/ssl-cert-snakeoil.pem; | |
ssl_certificate_key /etc/ssl/private/ssl-cert-snakeoil.key; | |
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | |
ssl_ciphers RC4:HIGH:!aNULL:!MD5; | |
ssl_prefer_server_ciphers on; | |
ssl_verify_depth 3; | |
client_max_body_size 10M; | |
access_log /var/log/nginx/mail.justrocketscience.com-access.log; | |
error_log /var/log/nginx/mail.justrocketscience.com-error.log; | |
location /sitestatic/ { | |
autoindex on; | |
} | |
location /media/ { | |
autoindex on; | |
} | |
location / { | |
include uwsgi_params; | |
uwsgi_param UWSGI_SCRIPT instance.wsgi:application; | |
uwsgi_pass modoboa; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment