1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-04-20 02:52:11 +00:00

Added a dynamicdns proxy that accepts GET requests and transforms them into PUT requests

This commit is contained in:
yodax 2019-01-08 06:53:48 +01:00
parent 16f38042ec
commit 48ed564978

View File

@ -14,6 +14,15 @@
add_header Content-Security-Policy "frame-ancestors 'none';";
}
location /dynamicdns/ {
proxy_method PUT;
proxy_pass http://127.0.0.1:10222/;
proxy_set_header X-Forwarded-For $remote_addr;
add_header X-Frame-Options "DENY";
add_header X-Content-Type-Options nosniff;
add_header Content-Security-Policy "frame-ancestors 'none';";
}
# Nextcloud configuration.
rewrite ^/cloud$ /cloud/ redirect;
rewrite ^/cloud/$ /cloud/index.php;