Initial commit.
This commit is contained in:
33
nginx/conf.d/mail.898.ro.conf
Normal file
33
nginx/conf.d/mail.898.ro.conf
Normal file
@@ -0,0 +1,33 @@
|
||||
server {
|
||||
listen 192.168.1.2:80;
|
||||
server_name mail.898.ro;
|
||||
charset utf-8;
|
||||
|
||||
### redirect
|
||||
if ($scheme != "https") {
|
||||
return 301 https://$host$request_uri;
|
||||
} # managed by Certbot
|
||||
|
||||
if ($host ~* ~^www\..+\.club3d.ro\.ro$) {
|
||||
return 301 $scheme://+\/club3d.ro$request_uri;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
server_name mail.898.ro;
|
||||
charset utf-8;
|
||||
root /var/www/html/roundcubemail;
|
||||
index index.php;
|
||||
|
||||
listen 192.168.1.2:443 ssl; # managed by Certbot
|
||||
ssl_certificate /etc/letsencrypt/live/mail.898.ro/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/mail.898.ro/privkey.pem;
|
||||
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
|
||||
|
||||
location / {
|
||||
proxy_pass http://192.168.1.5:80;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header Host $http_host;
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user