Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This file was automatically installed on 2022-05-17T03:53:45.952096
- upstream modoboa {
- server unix:/run/uwsgi/app/modoboa_instance/socket fail_timeout=0;
- }
- server {
- listen 80;
- listen [::]:80;
- server_name mail.tekexample.com;
- rewrite ^ https://$server_name$request_uri? permanent;
- }
- server {
- listen 443 ssl;
- listen [::]:443 ssl;
- server_name mail.tekexample.com;
- root /srv/modoboa/instance;
- ssl_certificate /etc/letsencrypt/live/mail.tekexample.com/fullchain.pem;
- ssl_certificate_key /etc/letsencrypt/live/mail.tekexample.com/privkey.pem;
- ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
- ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:ECDHE-RSA-AES128-GCM-SHA256:AES256+EECDH:DHE-RSA-AES128-GCM-SHA256:AES256+EDH:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA:ECDHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES128-SHA256:DHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES256-GCM-SHA384:AES128-GCM-SHA256:AES256-SHA256:AES128-SHA256:AES256-SHA:AES128-SHA:DES-CBC3-SHA:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!MD5:!PSK:!RC4";
- ssl_prefer_server_ciphers on;
- ssl_session_cache shared:SSL:10m;
- ssl_verify_depth 3;
- ssl_dhparam /etc/nginx/dhparam.pem;
- client_max_body_size 10M;
- access_log /var/log/nginx/mail.tekexample.com-access.log;
- error_log /var/log/nginx/mail.tekexample.com-error.log;
- location /sitestatic/ {
- try_files $uri $uri/ =404;
- }
- location /media/ {
- try_files $uri $uri/ =404;
- }
- location ^~ /new-admin {
- alias /srv/modoboa/instance/frontend/;
- index index.html;
- expires -1;
- add_header Pragma "no-cache";
- add_header Cache-Control "no-store, no-cache, must-revalidate, post-check=0, pre-check=0";
- try_files $uri $uri/ /index.html = 404;
- }
- location / {
- include uwsgi_params;
- uwsgi_param UWSGI_SCRIPT instance.wsgi:application;
- uwsgi_pass modoboa;
- }
- location ~* ^/autodiscover/autodiscover.xml {
- include uwsgi_params;
- uwsgi_pass automx;
- }
- location /mobileconfig {
- include uwsgi_params;
- uwsgi_pass automx;
- }
- location /radicale/ {
- proxy_pass http://localhost:5232/; # The / is important!
- proxy_set_header X-Script-Name /radicale;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_pass_header Authorization;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement