Skip to content
Snippets Groups Projects
Select Git revision
  • 20b08d1b83b1d518a76c26e9ec582aae575353a2
  • master default
  • host01
  • ns4
  • kodi
5 results

nextcloud.shore.co.il.conf

Blame
    • nimrod's avatar
      20b08d1b
      Collabora Online and Nextcloud, another try. · 20b08d1b
      nimrod authored
      I swear it should be the other way round (it looks to me like Nextcloud
      is embedding the code iframe), but disabling CSP on Nextcloud worked and
      I saw a comment on the Internet about it so lets give it a try.
      20b08d1b
      History
      Collabora Online and Nextcloud, another try.
      nimrod authored
      I swear it should be the other way round (it looks to me like Nextcloud
      is embedding the code iframe), but disabling CSP on Nextcloud worked and
      I saw a comment on the Internet about it so lets give it a try.
    nextcloud.shore.co.il.conf 1.09 KiB
    map $host $nextcloud { default nextcloud; }
    
    server {
        listen      80;
        listen      [::]:80;
        server_name nextcloud.shore.co.il;
        include     snippets/robots-disallow-all.conf;
        include     snippets/ads-txt.conf;
        include     snippets/security-txt.conf;
        include     snippets/www-acme-challenge.conf;
        include     snippets/redirect-https.conf;
    }
    
    server {
        listen      443 ssl http2;
        listen      [::]:443 ssl http2;
        server_name nextcloud.shore.co.il;
        include     snippets/robots-disallow-all.conf;
        include     snippets/ads-txt.conf;
        include     snippets/security-txt.conf;
        include     snippets/ssl.conf;
        include     snippets/nextcloud-well-known.conf;
    
        # Allow to include iframes in code.shore.co.il.
        add_header  Content-Security-Policy "frame-ancestors https://code.shore.co.il";
    
        location / {
            proxy_pass              http://$nextcloud$request_uri;
            proxy_http_version      1.1;
            include                 snippets/proxy-headers.conf;
            proxy_hide_header       X-Frame-Options;
            client_max_body_size    512m;
        }
    }