mintproject / mint-user-interface

MINT User Interface
0 stars 0 forks source link

Mixed Content #15

Closed mosoriob closed 5 years ago

mosoriob commented 5 years ago

Hi

We mixed content. Mixed Content: The page at 'https://mint.isi.edu/' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://wings.mint.isi.edu/users/mosorio/domains'. This request has been blocked; the content must be served over HTTPS.

I could not find the HTTP call. Do you have an idea @varunratnakar?

image

mosoriob commented 5 years ago

MINT configuration:

{
   storage = /data/mint/storage;
   server = https://mint.isi.edu/server;
    wings = {
        server = https://wings.mint.isi.edu;
        internal_server = http://localhost:8080;
        domain = MINT-production;
        storage = /data/wings/storage/default;
        ontology_prefix = http://www.wings-workflows.org/ontology;
    };
    layout = {
        workflow = /usr/bin/dot;
        graph = /usr/bin/fdp;
    }
    catalogs = {
        model = https://query.mint.isi.edu/api/MintProject/MINT-ModelCatalogQueries
        provenance = https://query.mint.isi.edu/api/MintProject/MINT-ProvenanceQueries;
        data = https://api.mint-data-catalog.org
    };
    visualization = {
        server = http://minty.mintviz.org/minty;
    };
    transformation = {
        server = http://mira.isi.edu:8888/transformation;
    };
    gsn = {
        server = http://34.73.227.230:8000;
    };
}
mosoriob commented 5 years ago

Solution: Edit the /var/lib/tomcats/wings/conf/server.xml

      <Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true">
        <!-- SingleSignOn valve, share authentication between web applications
             Documentation at: /docs/config/valve.html -->
        <!--
        <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
        -->

        <!-- Access log processes all example.
             Documentation at: /docs/config/valve.html
             Note: The pattern used is equivalent to using pattern="common" -->
        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
               prefix="localhost_access_log" suffix=".txt"
               pattern="%h %l %u %t &quot;%r&quot; %s %b" />
         <Valve className="org.apache.catalina.valves.RemoteIpValve"
                remoteIpHeader="x-forwarded-for"
                remoteIpProxiesHeader="x-forwarded-by"
                protocolHeader="x-forwarded-proto"
        />

      </Host>

Edit nginx configuration /etc/nginx/conf.d/001-wings.conf

        proxy_set_header X-Forwarded-Proto https;

And restart

systemctl restart wings