Fwd: help websockets

2021-06-18 Thread Alison
Hi, I'm using the following ingress in my jupyterhub application to expose the application externally from within the cluster: apiVersion: networking.k8s.io/v1beta1 kind: Ingress metadata: name: py-ingress annotations: kubernetes.io/ingress.class: nginx n

unable to forbidden access by ip

2021-06-18 Thread baalchina
Hi all, I am using nginx as my reverse proxy, and I do not want all Excel files in my server to be accessed in the internet. So I add this in my nginx.conf: location ~* \.(xls|xlsx)$ { allow 10.0.0.0/8; deny all; } while my intranet address is 10.0.0.0/8. I found in interne

Re: unable to forbidden access by ip

2021-06-18 Thread Thomas Ward
Based on your configuration snippet there doesn't appear to be anything wrong. Except for the fact that "/etc/nginx/html/_upload/article/files/d7/c2.xlsx" doesn't seem to exist on system.  Which means either your document root is set wrong for your server block, or you actually don't have a f

Dynamically resolving smtp upstream hostnames

2021-06-18 Thread kay
I'm using a new "proxy_smtp_auth on;" option in my mail proxy server inside k8s cluster, therefore I just need to proxy_pass smtp requests to the backend. Since the backend must be set using the "auth_http" directive, I use the code below and provide the hostname instead of IP address: server {