ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    nextcloud nginx reserve proxy

    IT Discussion
    2
    8
    269
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • V
      VoIP_n00b
      last edited by

      I have it all setup and working, but I am getting an error when trying to upload files. What can I do to fix it?

      1 Reply Last reply Reply Quote 0
      • black3dynamiteB
        black3dynamite
        last edited by

        Show us the upload error.

        1 Reply Last reply Reply Quote 0
        • V
          VoIP_n00b
          last edited by

          e6ca25ee-2737-47e5-983f-f8b8eec360cd-image.png

          1 Reply Last reply Reply Quote 0
          • V
            VoIP_n00b
            last edited by

            Sadly nothing in the logs

            1 Reply Last reply Reply Quote 0
            • V
              VoIP_n00b
              last edited by VoIP_n00b

                 server {
                  listen 80;
                  listen [::]:80;
                  server_name cloud.domain.com;
              
                  # Redirect all HTTP requests to HTTPS with a 301 Moved Permanently response.
                  return 301 https://$host$request_uri;
              }
              
              server {
                 server_name cloud.domain.com;
              
                  location / {
                              proxy_set_header X-Real-IP $remote_addr;
                              proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                              proxy_set_header Host $http_host;
                              proxy_set_header X-NginX-Proxy true;
                              proxy_pass http://192.168.X.X:80;
                              proxy_redirect off;
                             }
              
                  listen 443 ssl http2;
                  listen [::]:443 ssl http2;                
              
                                                                                        
               # certs sent to the client in SERVER HELLO are concatenated in ssl_certificate
                  ssl_certificate /etc/letsencrypt/live/cloud.domain.com/fullchain.pem;
                  ssl_certificate_key /etc/letsencrypt/live/cloud.domain.com/privkey.pem;
                  ssl_session_timeout 1d;
                  ssl_session_cache shared:SSL:50m;
                  ssl_session_tickets off;
              
              
                  # modern configuration. tweak to your needs.
                  ssl_protocols TLSv1.2;
                  ssl_ciphers 'ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHAC$    ssl_prefer_server_ciphers on;
              
                  # HSTS (ngx_http_headers_module is required) (15768000 seconds = 6 months)
                  add_header Strict-Transport-Security max-age=15768000;
              
                  # OCSP Stapling ---
                  # fetch OCSP records from URL in ssl_certificate and cache them
                  ssl_stapling on;
                  ssl_stapling_verify on;
              
                  ## verify chain of trust of OCSP response using Root CA and Intermediate certs
                  ssl_trusted_certificate /etc/letsencrypt/live/cloud.domain.com/chain.pem;
              
                  resolver 1.1.1.1;
              
              }
              
              1 Reply Last reply Reply Quote 0
              • V
                VoIP_n00b
                last edited by

                I did the snap install for nextcloud

                1 Reply Last reply Reply Quote 0
                • V
                  VoIP_n00b
                  last edited by

                  I’ll be working on this again tomorrow

                  1 Reply Last reply Reply Quote 0
                  • black3dynamiteB
                    black3dynamite
                    last edited by

                    If your nginx reverse proxy is on Fedora, confirm that SELinux isn't denying anything.

                    sudo tail -f /var/log/audit/audit.log | grep 'denied'
                    
                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    • First post
                      Last post