Advertisement
and_cesbo

nginx config for proxy_pass to astra web

Sep 4th, 2019
1,183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.48 KB | None | 0 0
  1. # Works with Astra 5.65 and newer
  2. # 192.168.1.1:8000 - host and port to Astra web interface
  3.  
  4. server {
  5.     listen 443;
  6.     listen [::]:443;
  7.  
  8.     server_name astra.example.com;
  9.  
  10.     location /control/event/ {
  11.         proxy_http_version 1.1;
  12.         proxy_pass http://192.168.1.1:8000/control/event/;
  13.         proxy_set_header Upgrade $http_upgrade;
  14.         proxy_set_header Connection "upgrade";
  15.     }
  16.  
  17.     location / {
  18.         proxy_pass http://192.168.1.1:8000;
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement