2022-10-20 22:40:01 +02:00
|
|
|
#>GNUNUX
|
|
|
|
#location = /roundcubemail {
|
|
|
|
#alias /usr/share/roundcubemail/;
|
2022-05-04 10:29:03 +02:00
|
|
|
location = / {
|
|
|
|
alias %%nginx_root;
|
2022-10-20 22:40:01 +02:00
|
|
|
#<GNUNUX
|
2022-05-04 10:29:03 +02:00
|
|
|
}
|
|
|
|
|
2022-10-20 22:40:01 +02:00
|
|
|
#>GNUNUX
|
|
|
|
#location /roundcubemail/ {
|
|
|
|
# root /usr/share;
|
2022-05-04 10:29:03 +02:00
|
|
|
location / {
|
|
|
|
root %%nginx_root;
|
2022-10-20 22:40:01 +02:00
|
|
|
#<GNUNUX
|
2022-05-04 10:29:03 +02:00
|
|
|
index index.php;
|
|
|
|
|
2022-10-20 22:40:01 +02:00
|
|
|
#>GNUNUX
|
|
|
|
# location ~ ^/roundcubemail/bin/(.+)$ {
|
2022-05-04 10:29:03 +02:00
|
|
|
location ~ ^/bin/(.+)$ {
|
2022-10-20 22:40:01 +02:00
|
|
|
#<GNUNUX
|
2022-05-04 10:29:03 +02:00
|
|
|
deny all;
|
|
|
|
}
|
|
|
|
location ~ ^/plugins/enigma/home/(.+)$ {
|
|
|
|
deny all;
|
|
|
|
}
|
|
|
|
|
|
|
|
# Define who can access the installer
|
|
|
|
# keep this secured once configured
|
|
|
|
|
2022-10-20 22:40:01 +02:00
|
|
|
#>GNUNUX
|
|
|
|
# location ~ ^/roundcubemail/installer/(.+\.php)$ {
|
2022-05-04 10:29:03 +02:00
|
|
|
location ~ ^/installer/(.+\.php)$ {
|
2022-10-20 22:40:01 +02:00
|
|
|
#<GNUNUX
|
2022-05-04 10:29:03 +02:00
|
|
|
allow 127.0.0.1;
|
|
|
|
allow ::1;
|
|
|
|
deny all;
|
|
|
|
|
|
|
|
try_files $uri =404;
|
|
|
|
fastcgi_intercept_errors on;
|
|
|
|
include fastcgi_params;
|
|
|
|
fastcgi_param SERVER_NAME $host;
|
|
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
|
|
fastcgi_pass php-fpm;
|
|
|
|
}
|
|
|
|
|
|
|
|
# Define who can access the Webmail
|
|
|
|
# You can enlarge permissions once configured
|
|
|
|
|
2022-10-20 22:40:01 +02:00
|
|
|
#>GNUNUX
|
|
|
|
# location ~ ^/roundcubemail/(.+\.php)$ {
|
|
|
|
# allow 127.0.0.1;
|
|
|
|
# allow ::1;
|
|
|
|
# deny all;
|
2022-05-04 10:29:03 +02:00
|
|
|
location ~ ^/(.+\.php)$ {
|
2022-10-20 22:40:01 +02:00
|
|
|
#<GNUNUX
|
2022-05-04 10:29:03 +02:00
|
|
|
|
|
|
|
try_files $uri =404;
|
|
|
|
fastcgi_intercept_errors on;
|
|
|
|
include fastcgi_params;
|
|
|
|
fastcgi_param SERVER_NAME $host;
|
|
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
|
|
fastcgi_pass php-fpm;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-10-20 22:40:01 +02:00
|
|
|
#>GNUNUX
|
2022-05-04 10:29:03 +02:00
|
|
|
location /skins/elastic/risotto {
|
|
|
|
alias /usr/local/lib/static/;
|
|
|
|
}
|
2022-10-20 22:40:01 +02:00
|
|
|
#<GNUNUX
|