rs287 opened a new issue, #5353:
URL: https://github.com/apache/incubator-devlake/issues/5353

   ## Question
   Would it be possible to tweak nginx conf file in devlake ui config and add 
"oauth request module" (for adding OAUTH authorization server), packaged this 
in helm chart (common step)?
   **nginx.conf** 
   ```
   
   server {
     listen 4000;
     server_name localhost;
     absolute_redirect off;
     ${SERVER_CONF}
   
     location / {
       root /usr/share/nginx/html;
       index index.html;
       try_files $uri /index.html;
     }
   
     location /api/ {
       # OAuth2 authentication
       auth_request /oauth2/auth;
       error_page 401 = /oauth2/error;
   
   
       # Proxy settings
       resolver ${DNS} valid=${DNS_VALID};
       resolver_timeout 3s;
       set $target "${DEVLAKE_ENDPOINT}";
       rewrite /api/(.*) /$1 break;
       proxy_send_timeout 60s;
       proxy_read_timeout 60s;
       proxy_pass ${DEVLAKE_ENDPOINT_PROTO}://$target;
     }
   
     location = /oauth2/auth {
       internal;
       proxy_pass ${AUTH_SERVER_ENDPOINT};
       proxy_pass_request_body off;
       proxy_set_header Content-Length "";
       proxy_set_header X-Original-URI $request_uri;
     }
   ```
   Any help is highly appreciated in checking this?
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to