nginx-reverse-proxy

Dotnet core identityserver4 reverse proxy

守給你的承諾、 提交于 2021-01-29 07:15:49
问题 Hi everybody I have a problem with my reverse proxy configuration for my dotnet core application. My problem is that when I am using identityserver discovery endpoint the port number is missing from the end of my url. I have a request for the discorvery document to https://:8421/.well-known/openid-configuration and the response is the following and the problem here is that the clients of the authentication service are using the document as a base for verification, using jwks_uri property from

Nifi on docker behind nginx processor configure not opening

ぐ巨炮叔叔 提交于 2021-01-28 11:31:07
问题 Followed guide ( https://michalklempa.com/2019/04/nifi-registry-nginx-proxy-tls-basic-auth/ ) to set up nginx basic auth, however instead of proxy for nifi-registry I set it up for nifi. Auth is working and page is accessible but somehow processor configure window not opening. The issue is due to nginx since direct access to nifi through HTTP exposed ports works ,just not behind nginx proxy. below is the config I am using: server { listen 9988 ssl; root /usr/share/nginx/html; index index.html

NGINX try_files with name as the last word in the $uri

雨燕双飞 提交于 2021-01-28 07:42:50
问题 I've got an nginx on my server and I am trying to get it to open the file ' /config/www/pp1/index.php ' for address https://example.com/pp1 and ' /config/www/interpreter/index.html ' for https://example.com/interpreter. Furthermore all things like https://example.com/interpreter/res/docs should fire up ' /config/www/interpreter/res/docs.html '. I have made many attempts. Currently my default config file in /site-confs looks like this: server { listen 80; listen 443 ssl http2; server_name kni

NGINX try_files with name as the last word in the $uri

对着背影说爱祢 提交于 2021-01-28 07:31:36
问题 I've got an nginx on my server and I am trying to get it to open the file ' /config/www/pp1/index.php ' for address https://example.com/pp1 and ' /config/www/interpreter/index.html ' for https://example.com/interpreter. Furthermore all things like https://example.com/interpreter/res/docs should fire up ' /config/www/interpreter/res/docs.html '. I have made many attempts. Currently my default config file in /site-confs looks like this: server { listen 80; listen 443 ssl http2; server_name kni

How to set proxy_http_version in LUA code before upstreaming the request in nginx

北城余情 提交于 2020-12-26 12:14:40
问题 I want to change the proxy http version in Lua code programmatically. Is there any way? Yes, I know that we can set it via the nginx config file in the location/server block. Is there any way that I can do it using Lua dynamically per request? 回答1: Updated 14.10.2020 location / { content_by_lua_block { -- some logic here if flag then return ngx.exec("@http1_0") end return ngx.exec("@http1_1") } } location @http1_0 { proxy_pass ...; proxy_http_version 1.0; ... } location @http1_1 { proxy_pass

Why isn't Nginx changing the protocol to WebSocket?

萝らか妹 提交于 2020-12-15 21:10:33
问题 I am trying to run Laracvel-echo. Host configuration: location /socket.io { proxy_pass http://127.0.0.1:6002/; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade"; proxy_set_header Host $host; } I catch headers with Socat: socat -v TCP-LISTEN:6002,fork TCP:127.0.0.1:6001 On my DEV server, I see that everything is ok, the protocol is changing (HTTP/1.1 101 Switching Protocols) : 2020/10/22 13:51:36.147102 length=175 from=0 to=174 HTTP/1.1 101

Why isn't Nginx changing the protocol to WebSocket?

末鹿安然 提交于 2020-12-15 21:00:12
问题 I am trying to run Laracvel-echo. Host configuration: location /socket.io { proxy_pass http://127.0.0.1:6002/; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade"; proxy_set_header Host $host; } I catch headers with Socat: socat -v TCP-LISTEN:6002,fork TCP:127.0.0.1:6001 On my DEV server, I see that everything is ok, the protocol is changing (HTTP/1.1 101 Switching Protocols) : 2020/10/22 13:51:36.147102 length=175 from=0 to=174 HTTP/1.1 101