and_cesbo

nginx config for proxy_pass to astra web

Sep 4th, 2019
913
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×