Skip to content
Snippets Groups Projects
Select Git revision
  • 2afe411f443842d82fd3f5e7ad1184d40f5b5f8b
  • master default
2 results

Dockerfile

Blame
    • nimrod's avatar
      2afe411f
      Updates. · 2afe411f
      nimrod authored
      A lot of different fixes. What I have in production right now.
      2afe411f
      History
      Updates.
      nimrod authored
      A lot of different fixes. What I have in production right now.
    nextcloud.shore.co.il.conf 1.30 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;
    
        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;
    
            # Temporary measure to test a Collabora Online issue, should not be left
            # as is.
            proxy_hide_header       content-security-policy;
            # Another workaround, this time mixed content and HSTS.
            sub_filter_once         on;
            sub_filter              'http://nextcloud.shore.co.il' 'https://nextcloud.shore.co.il';
        }
    }