Skip to content

Latest commit

 

History

History

hosts-group

Hosts Group

inspire from SwitchHosts

Just webserver, provide curd api to management hosts file.

hosts file location:

  1. Windows C:\Windows\System32\drivers\etc\hosts
  2. Linux /etc/hosts

Support nginx

  1. sudo ./hosts-group -mode nginx -f /etc/nginx/conf.d/static.conf

Version

1.4.0

  1. simple support nginx config

TODO

  1. independent window

Install

  1. https://codemirror.net/5/ 或者 https://codemirror.net/5/codemirror.zip 下载后,复制对应文件到项目目录中

Linux

go install


Windows

  1. make buildExe
    • only support build via linux ...
  2. run hosts-group.xxx.exe on Windows Administer

blog: exe add icon

Dev Tips

  1. hosts go run . -d -D
  2. nginx go build && sudo ./hosts-group -d -D -mode nginx -f /etc/nginx/conf.d/static.conf

TODO

  1. js 文件缺失
  2. Linux编译打包流程未抽出来