Skip to content

Files

Latest commit

 

History

History
49 lines (35 loc) · 748 Bytes

reload.md

File metadata and controls

49 lines (35 loc) · 748 Bytes

Dynamic conf and reload:

Proxy start with this conf file proxy.conf that looks like:

[
  {
    "name": "baba",
    "listen": "[::]:8881",
    "upstream": "www.google.com:80",
    "enabled": true
  },
  {
    "name": "example",
    "listen": "[::]:8888",
    "upstream": "www.google.com:80",
    "enabled": true
  }
]

And as you can see the loaded proxies look like: proxies

Removing a proxy:

Conf file now looks like:

[
  {
    "name": "example",
    "listen": "[::]:8888",
    "upstream": "www.google.com:80",
    "enabled": true
  }
]

And the element is removed from the conf : modifiedproxies

The implementation of this is quite rudimentary