Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    [Résolu] pfSense + Haproxy + nextcloud

    Scheduled Pinned Locked Moved Français
    12 Posts 5 Posters 2.2k Views
    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
      visvic @PiBa
      last edited by

      Hello @PiBa ,

      Thanks a lot for your answer.
      do you know how do edit textually? in console ?

      thank a lot.

      P 1 Reply Last reply Reply Quote 0
      • P
        PiBa @visvic
        last edited by

        @visvic
        Put the setting in the frontend under "Advanced settings" in the textbox for "Advanced pass thru"

        V 1 Reply Last reply Reply Quote 0
        • V
          visvic @PiBa
          last edited by visvic

          Hello @PiBa,

          I have an error when I insert this line in Services/HAProxy/Settings/Global Advanced pass thru

          Here is the error:

          × Errors found while starting haproxy
          [ALERT] 136/120627 (60321) : parsing [/var/etc/haproxy_test/haproxy.cfg:14] : unknown keyword 'http-request' in 'global' section 
          [ALERT] 136/120627 (60321) : Error(s) found in configuration file : /var/etc/haproxy_test/haproxy.cfg 
          [ALERT] 136/120627 (60321) : Fatal errors found in configuration.
          

          And the file generated for test: generate-for-test.txt

          Do you have an idea ?

          thanks again for your help !

          EDIT:
          I found, I was not in the right place. I test because I broke my nextcloud instance.

          P 1 Reply Last reply Reply Quote 0
          • Mister-MagooM
            Mister-Magoo
            last edited by

            I have same configuration but haproxy is an a VM (not a pfsense plugin).
            I had same error. I have put this line in my haproxy instance at right place and now, error was gone...

            PFSense du moment en multiwan

            1 Reply Last reply Reply Quote 0
            • P
              PiBa @visvic
              last edited by

              @visvic
              Put the setting in the frontend

              1 Reply Last reply Reply Quote 0
              • TataveT
                Tatave
                last edited by

                @all

                en français merci pour les non anglophone c'est une marque de respect pour ces personnes là.

                merci

                aider, bien sûre que oui
                assister, évidement non !!!

                donner à manger à un homme, ne lui permettra que de survivre qu'un temps.
                apprendre à un homme comment cuisiner, il sera vivre.

                P 1 Reply Last reply Reply Quote 0
                • P
                  PiBa @Tatave
                  last edited by

                  @Tatave
                  Je ne suis pas sûr que vous vouliez dire que je n'aurais pas dû essayer de répondre à une question dans une langue où je ne parle pas / ne comprends pas et ne sais pas écrire. Si c'est le cas, je m'excuse de vouloir aider quelqu'un. J'espère que google-translate fait du bon travail sans gâcher le contexte de ce qui est écrit.

                  1 Reply Last reply Reply Quote 1
                  • V
                    visvic
                    last edited by

                    Bonsoir @Tatave, @PiBa est déjà très sympa de venir jusqu'à notre langue de Molière pour nous aider, je ne pense pas qu'on puisse lui en vouloir de répondre dans sa langue natal, qui plus est, sera plus précis.
                    En revanche, moi j'aurais pu éventuellement faire la réponse en anglais et français.

                    @PiBa, thanks again for your good job, I try this very quickly. Merci encore pour ton excellent travail, j'essaie cela très rapidement.

                    Bonne soirée @tous 😇
                    Good night @all 😇

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

                      Bonjour à tous,

                      La solution de @PiBa a résolu ma demande ! Merci beaucoup à lui pour son intervention.
                      @PiBa solution solved my request! Thank you very much to him for his intervention.

                      @PiBa said in pfSense + Haproxy + nextcloud:

                      @visvic
                      Try adding it to the advanced textual options?:

                      http-request redirect code 301 location /remote.php/dav/ if { path -m reg "^/.well-known/(cal|card)dav" }
                      

                      Autre question, est ce que L'en-tête HTTP "X-Frame-Options" à un rapport avec le reverse proxy ?
                      another question, does the HTTP header "X-Frame-Options" report to a reverse proxy?

                      EDIT: j'ai trouvé ceci X-Frame-Options, @PiBa une idée ? an idea ?

                      **EDIT 2:**J'ai renseigné ceci dans le front-end:

                      http-response set-header X-Frame-Options "SAMEORIGIN"
                      

                      et cela fonctionne parfaitement !

                      Merci beaucoup à tous et une très bonne soirée :)

                      1 Reply Last reply Reply Quote 0
                      • R
                        rybena
                        last edited by

                        Hi
                        I am having issues with HAProxy and Nextcloud.

                        Where exactly do you paste that text?

                        I have tried to put it in the front end but nothing changes.

                        The issue Im having is that I cant access nextcloud via the Android app or the linux client.
                        I can access nextcloud from a web browser no worries.

                        Thanks

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post
                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.