admin管理员组

文章数量:1391756

i'm getting crazy since 2 weeks.

when i try login this url works

but not this

i get 503 and a page with "Application is not available"

when i add oauth-openshift.apps.mydomain to /etc/hosts, works well with invalid ssl

but why ?

i'm using nginx to send all trafic correctly:

 server {
    listen 8081;
     server_name  api.mydomain oauth-openshift.apps.mydomain  *.apps.mydomain;
    location / {
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_pass https://192.168.1.198:80;
    }
}

server {
    listen 8090 ssl;
    http2 on;
    server_name  api.mydomain oauth-openshift.apps.mydomain *.apps.mydomain;
    client_max_body_size 0M;

    access_log /var/myapps/homecluster/proxynginx/log/openapi-access.log master;
    error_log /var/myapps/homecluster/proxynginx/log/openapi-k-error.log;

    ssl_certificate /var/myapps/workfolder/acme-certificates/api.mydomain_ecc/fullchain.cer;
    ssl_certificate_key /var/myapps/workfolder/acme-certificates/api.mydomain_ecc/api.mydomain.key;



    location / {
        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_pass https://192.168.1.198:443;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_ssl_verify off;   
    }
}

my route:

oc get route oauth-openshift -n openshift-authentication -o wide

NAMESPACE                  NAME                      HOST/PORT                                                        PATH        SERVICES            PORT    TERMINATION            WILDCARD
openshift-authentication   oauth-openshift           oauth-openshift.apps.mydomain                                            oauth-openshift     6443    passthrough/Redirect   None
openshift-console          console                   console-openshift-console.apps.mydomain                                  console             https   reencrypt/Redirect     None
openshift-console          downloads                 downloads-openshift-console.apps.mydomain                                downloads           http    edge/Redirect          None
openshift-ingress-canary   canary                    canary-openshift-ingress-canary.apps.mydomain                            ingress-canary      8443    passthrough/Redirect   None
openshift-monitoring       alertmanager-main         alertmanager-main-openshift-monitoring.apps.mydomain         /api        alertmanager-main   web     reencrypt/Redirect     None
openshift-monitoring       prometheus-k8s            prometheus-k8s-openshift-monitoring.apps.mydomain            /api        prometheus-k8s      web     reencrypt/Redirect     None
openshift-monitoring       prometheus-k8s-federate   prometheus-k8s-federate-openshift-monitoring.apps.mydomain   /federate   prometheus-k8s      web     reencrypt/Redirect     None
openshift-monitoring       thanos-querier            thanos-querier-openshift-monitoring.apps.mydomain            /api        thanos-querier      web     reencrypt/Redirect     None

please help

本文标签: openshift work httpsconsoleopenshiftconsoleapps but not httpsoauthopenshiftappsStack Overflow