Startec

Startec

DUVIDA SOBRE AS CONFIGUÇÕES DO NGINX. · heuderdev

Mai 21, às 16:04

·

2 min de leitura

·

0 leituras

Estou estudando sobre o proxy_pass do NGINX. De modo geral está funcionando ok, no entando se houver um reload ... { location /keycloak/ { ... quando ele redireciona ele pega a location /...
DUVIDA SOBRE AS CONFIGUÇÕES DO NGINX. · heuderdev

Estou estudando sobre o proxy_pass do NGINX.

De modo geral está funcionando ok, no entando se houver um reload

... { location /keycloak/ { ...

quando ele redireciona ele pega a location /.
Sabem alguma configuração que posso está pegando o location /keycloak/ "/keycloak/auth" sendo que a perte "auth" é dinâmico.

https://youtu.be/1-MXuijwUCY Explico melhor nesse vídeo sobre o problema.

Minha ideia é contruir essa configuração em meu laboratório aqui em casa.

Minha configuração no NGNIX:

upstream jenkins { server infra.local.net:8050;}
upstream socketi { server infra.local.net:6001;}
upstream docker { server infra.local.net:9000;}
upstream keycloak { server infra.local.net:8080;}
server {
 listen 80 default_server;
 listen [::]:80 default_server;
 server_name infra.local.net/*;
 location / {
 proxy_pass http://jenkins;
 proxy_set_header Host $host;
 proxy_set_header X-Real-IP $remote_addr;
 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
 }
 location /jenkins/ {
 rewrite ^/jenkins(.*)$ $1 break;
 proxy_pass http://jenkins;
 proxy_set_header Host $host;
 proxy_set_header X-Real-IP $remote_addr;
 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
 }
 location /docker/ {
 rewrite ^/docker(.*)$ $1 break;
 proxy_pass http://docker;
 proxy_set_header Host $host;
 proxy_set_header X-Real-IP $remote_addr;
 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
 }
 location /socketi/ {
 rewrite ^/socketi(.*)$ $1 break;
 proxy_pass http://socketi;
 proxy_set_header Host $host;
 proxy_set_header X-Real-IP $remote_addr;
 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
 }
 location /keycloak/ {
 rewrite ^/keycloak(.*)$ $1 break;
 proxy_pass http://keycloak;
 proxy_set_header Host $host;
 proxy_set_header X-Real-IP $remote_addr;
 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
 }
}

Continue lendo

AI | Techcrunch

Tiger Global backs Indian industrial IoT startup Infinite Uptime in $18.8M funding round
Infinite Uptime, an Indian industrial IoT startup that offers predictive maintenance solutions for machinery, has secured an additional $18.85 million as part of an ongoing funding round led by Tiger Global...

Hoje, às 07:57

DEV

How to write a Supabase security policy in Typescript
Supabase utilizes Row Level Security (RLS) to configure access control per account privilege to DB rows, allowing clients to make direct requests to the DB without API development. However, RLS rules must be...

Hoje, às 06:52

DEV

Reduce Bundle size with Chakra UI And NextJS
Reduce Bundle size with Chakra UI Hi, I was trying to reduce the bundle size of app built with chakra and nextjs. I tried to use three different ways to import the ChakraProvider will share with you the...

Hoje, às 06:37

DEV

Liman Cihaz Yönetim ile Parola Ayarları
Liman arayüzü açılır. Menüye girilir. Menüde sunucunun alt başlıklarında bulunan Cihaz Yöneticisi eklentisinin içine girilir. İlgili makineye sağ tıklanır ve Genel Bakış sekmesine tıklanır. "Konfigürasyon"...

Hoje, às 05:41

TabNews

Java é uma boa área para entrar no mercado de trabalho? · Hawk2811
Eu fiz um post a um tempo atrás e eu citei no post que odeio desenvolvimento web eu não suporto ter que mecher com HTML,CSS,Javascript eu acho horrível mas eu gosto de Java mas eu acho po...

Hoje, às 04:16

AI | Techcrunch

China bans Micron chips in key infrastructure over 'national security' risks
China has banned some sales of Micron products after launching a probe into the American memory chip giant for cybersecurity risks in early April. The decision is widely seen as part of the tit-for-tac in the ongoing U.S.-China economic competition, which has started to upend a deeply intertwined global tech supply chain. Last year, the […]

Hoje, às 03:25

Tech Crunch

Patient21, a digital healthcare startup with brick-and-mortar clinics, raises $108M to grow beyond Germany
Patient21, a four-year-old German startup that combines a digital healthcare platform with real-world brick-and-mortar clinics, has raised €100 million ($108 million) in a Series C round of funding led by...

Hoje, às 03:00

DEV

And they began to code
I started coding because... I needed something to do during lockdown, I wanted to help people, and things that I wanted to make were sometimes too specific. I want to show off... My personal website...

Hoje, às 02:02

TabNews

O Programador da Udemy · LukeMe
Era uma vez um jovem chamado Lucas, apaixonado por programação desde muito cedo. Ele sempre sonhou em se tornar um programador de sucesso, criando projetos inovadores e trabalhando em gra...

Hoje, às 02:00

DEV

How to use DEV.to API
In this post, we'll explore how to use the DEV.to API and show some practical examples of how you can use it in your application to display the list of published posts and how to show a post. What is...

Hoje, às 01:48