perfsonar / archive

The perfSONAR Measurement Archive based on OpenSearch
Apache License 2.0
0 stars 1 forks source link

Reverse proxy for opensearch dashboards #4

Closed arlake228 closed 2 years ago

arlake228 commented 2 years ago

We should put opensearch dasboards behind a reverse proxy so they listen on 443 and don't need to open 5601.

# cat /etc/httpd/conf.d/apache-opensearchdash.conf 
<IfModule proxy_module>
    ProxyRequests Off
    <Proxy *>
        <IfVersion >= 2.4>
            Require all granted
        </IfVersion>
        <IfVersion < 2.4>
            Order deny,allow
            Allow from all
        </IfVersion>
    </Proxy>
    ProxyPass /opensearchdash http://localhost:5601 status=+I
    ProxyPreserveHost On
</IfModule>