crc icon indicating copy to clipboard operation
crc copied to clipboard

CRC , How to access web console from remote

Open bentech4u opened this issue 1 year ago • 2 comments

Hi,

i have installed CRC local on a virtual machine (redhat) , locally (from red hat) i can be able to access through OC.

How can i access web console from outside, let say from my laptop which has reachability . i have tried nginx method, and it didn't worked

Host so IP: 192.168.68.123 Hosts entry:

# Added by CRC
192.168.130.11   api.crc.testing canary-openshift-ingress-canary.apps-crc.testing console-openshift-console.apps-crc.testing default-route-openshift-image-registry.apps-crc.testing downloads-openshift-console.apps-crc.testing oauth-openshift.apps-crc.testing
# End of CRC section

here is my nginx configuration:

server {
    listen 80;
    server_name crc-proxy.local;

    location / {
        proxy_pass https://console-openshift-console.apps-crc.testing;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;

        # SSL settings
        proxy_ssl_verify off;
        proxy_ssl_protocols TLSv1.2 TLSv1.3;
    }
}

server {
    listen 80;
    server_name console-openshift-console.apps-crc.testing oauth-openshift.apps-crc.testing default-route-openshift-image-registry.apps-crc.testing downloads-openshift-console.apps-crc.testing canary-openshift-ingress-canary.apps-crc.testing;

    location / {
        proxy_pass https://$host$request_uri;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;

        # SSL settings
        proxy_ssl_verify off;
        proxy_ssl_protocols TLSv1.2 TLSv1.3;
    }
}

bentech4u avatar Jul 06 '24 07:07 bentech4u