• Recent
    • Tags
    • Popular
    • Register
    • Login

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    Data Source Permissions after import?

    User help
    2
    13
    2.0k
    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.
    • danD
      dan @cbyrne
      last edited by

      @cbyrne maybe? I do have a proxy setup for SSL redirect.
      I'll check the console and see if it has anything in there.

      cbyrneC 1 Reply Last reply Reply Quote 0
      • cbyrneC
        cbyrne @dan
        last edited by

        @dan Quick way to check is your browser's dev tools. In Firefox, if you right click and select inspect and then go to the console tab you'll see error messages along the lines of "couldn't connect to ws://your.domain". I presume it's similar in chrome dev tools.

        Software Developer for GLAS Energy Technology, Ireland

        danD 1 Reply Last reply Reply Quote 0
        • danD
          dan @cbyrne
          last edited by

          @cbyrne yeh definitely getting those errors. :(
          I'll have to work out why the proxy redirect isn't working as intended.

          cbyrneC 1 Reply Last reply Reply Quote 0
          • cbyrneC
            cbyrne @dan
            last edited by

            @dan Well at lease we know what it is! What's your proxy server?

            Software Developer for GLAS Energy Technology, Ireland

            danD 1 Reply Last reply Reply Quote 0
            • danD
              dan @cbyrne
              last edited by

              @cbyrne thanks for the help with this.
              It's apache2 with an SSL cert as I couldn't for the life of me get it to renew correctly on Mango itself.
              That side of it appears to work, the GUI loads seemingly normally.
              Just the data sources have that ws:// error. Have I maybe not enabled something correctly for the proxyredirect to work.

              cbyrneC 1 Reply Last reply Reply Quote 0
              • cbyrneC
                cbyrne @dan
                last edited by cbyrne

                @dan Here's my apache config, hopefully you can get yours working from it

                <VirtualHost *:80>
                    ProxyRequests Off
                    ProxyPreserveHost On
                
                    Redirect permanent / https://your.domain/
                </VirtualHost>
                
                <VirtualHost *:443>
                    ServerName your.domain
                    ServerAlias your.domain
                
                    ErrorLog "/var/log/your.domain_error.log"
                    # Possible values include: debug, info, notice, warn, error, crit,
                    # alert, emerg.
                    LogLevel warn
                    CustomLog "/var/log/your.domain_access.log" combined
                
                    SSLEngine On
                    SSLProxyEngine On
                    ProxyRequests Off
                    ProxyPreserveHost On
                
                    # allow for upgrading to websockets
                    RewriteEngine on
                    RewriteCond %{HTTP:Connection} Upgrade [NC]
                    RewriteCond %{HTTP:Upgrade} websocket [NC]
                    RewriteRule /(.*) ws://127.0.0.1:8080/$1 [P,L]
                
                    RequestHeader set Origin "http://your.domain"
                    Header edit Location ^http://your.domain https://your.domain
                
                    <Location />
                        ProxyPass http://127.0.0.1:8080/
                        ProxyPassReverse /
                    </Location>
                
                    SSLCertificateFile "/etc/httpd/conf.d/ssl/your.domain.crt"
                    SSLCertificateKeyFile "/etc/httpd/conf.d/ssl/your.domain-pkey.pem"
                </VirtualHost>
                

                Software Developer for GLAS Energy Technology, Ireland

                danD 3 Replies Last reply Reply Quote 0
                • danD
                  dan @cbyrne
                  last edited by

                  @cbyrne thanks for that.

                  I don't have this line:

                  <Location />
                      ProxyPass http://127.0.0.1:8080/
                      ProxyPassReverse /
                  </Location>
                  

                  The other references to localhost in that config file are pointing to the machine's eth IP. Wonder if I should change them to localhost?
                  A lot of them refer to :443 for the SSL too, Mango itself is running on :8080

                  I think I'm confusing myself with how the redirect proxy works.

                  1 Reply Last reply Reply Quote 0
                  • danD
                    dan @cbyrne
                    last edited by

                    @cbyrne I used this reference in the Mango docs..

                    https://docs-v4.mango-os.com/proxy

                    There is a note at the bottom referring to v3.7.0+ and I'm running latest 4.2.3. Where would I change this stuff? mango.properties?

                    e4d0101e-8e1b-4876-b1ea-9304b9087106-image.png

                    1 Reply Last reply Reply Quote 0
                    • danD
                      dan @cbyrne
                      last edited by

                      @cbyrne I deleted the version I had that was made from the Mango docs template and used yours instead and it worked!

                      Thanks heaps for your help.

                      Where do I send beer?

                      Cheers
                      Dan

                      cbyrneC 1 Reply Last reply Reply Quote 0
                      • cbyrneC
                        cbyrne @dan
                        last edited by

                        @dan don't mention it! Happy to help. I actually omitted one or two things from that config for brevity. I'll edit it now, just some logging you might want to add.

                        Software Developer for GLAS Energy Technology, Ireland

                        danD 1 Reply Last reply Reply Quote 0
                        • danD
                          dan @cbyrne
                          last edited by

                          @cbyrne Well thank you that is very kind of you, now it's working great.

                          Cheers
                          Dan

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post