35 lines
816 B
Plaintext
35 lines
816 B
Plaintext
server {
|
|
listen 80;
|
|
listen [::]:80;
|
|
|
|
return 301 https://$host$request_uri;
|
|
|
|
server_name email.theribbles.org;
|
|
}
|
|
|
|
server {
|
|
|
|
# SSL configuration
|
|
#
|
|
listen 443 ssl;
|
|
listen [::]:443 ssl;
|
|
|
|
root /opt/src/jmap-demo-webmail;
|
|
|
|
# Add index.php to the list if you are using PHP
|
|
index index.html index.htm;
|
|
|
|
server_name email.theribbles.org;
|
|
|
|
ssl_certificate /etc/letsencrypt/live/theribbles.org/fullchain.pem; # managed by Certbot
|
|
ssl_certificate_key /etc/letsencrypt/live/theribbles.org/privkey.pem; # managed by Certbot
|
|
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
|
|
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
|
|
|
|
location / {
|
|
# First attempt to serve request as file, then
|
|
# as directory, then fall back to displaying a 404.
|
|
try_files $uri $uri/ =404;
|
|
}
|
|
}
|