jpillora / webproc Goto Github PK
View Code? Open in Web Editor NEWWrap any program in a simple web-based user-interface
Wrap any program in a simple web-based user-interface
systemctl restart webproc?
Hi there!
I am trying webproc -c /etc/dnsmasq.conf -c /etc/hosts -- dnsmasq --no-daemon
But the web UI only shows /etc/hosts
and the logs.
Am I missing something?
I would like to be able to edit both files:
Cheers!
Gus
I'm running docker-dnsmasq and it works great, however if I keep a tab open it will quickly begin to eat up all of my RAM.
Dnsmasq works perfectly, so it appears this is only an issue with webproc.
Here's my initial report of this issue against docker-dnsmasq.
Only clue at this point is lots of entries for run.js:55 in the browser console:
I'm try to use webproc to manager nginx and nginx.conf in docker container ,but it's not work well , and nginx listen port don't work in container ,so get this requests.
sh
(or maybe customise nginx
...)Please consider to insert multiple "ProgramArgs" on config.toml
for to use only one port bind and a single web page to interact with all programs.
I really like webproc. But in case, if i want to expose to LAN nginx.conf and i don't want to run it with webproc. It could be awesome to just have editor for selected files and (start/stop/restart) using systemd or w/e.
dnsmasq supports a cache drop/cleanup with when receives a sighup signal.
Is there any way to add such a signal to the webui?
Because it has twice OnExit keys. One of them should be OnSave maybe you missed it :)
By the way awsome program way to go!
Nice utility! I have it set up with dnsmasq, with everything running as root. When I make a modification to the configuration file through the web UI, and try to save it, I get a red box that says "No change", even though a change was made.
Access to / sync is always unsuccessful
Maybe it's because
Accept:
text/event-stream
While it's not too hard to build a valid request for /save in Python or sh/curl, getting the current file contents is much more difficult. It seems the only way to download it is via server-side events. I started trying to write a "raw" handler, but I've never done Go before.
The log view is quite useful however it would be of huge convinence if user can enter filter by query, reply or by ip address etc.
When I used it with dnsmasq
for a while, I observed abnormal high CPU usage, as shown in the screenshot.
I use strace
to try to track PID 13544
, which shows that the program is blocking the waitid
system call, and there is no other information. Through the top
command, I learned that CPU time is basically spent in us
state, not sys
state.
This situation has been going on for 24 hours, and it doesn't seem to be a problem of 'dnsmasq'. What happened to 'webproc'?
I am using webproc 0.2.2 on alpine linux in a docker container. When I have webproc configured to edit multiple files, it appears to save my changes but I frequently will receive a "no change" error message. If I configure it to only edit 1 file, I dont have this problem
#$GOPATH/bin/webproc
Usage: webproc [options]
Options:
--host listening interface
--port listening port
--user basic auth username
--pass basic auth password
Version:
0.0.0-src
Error:
field 'ProgramArgs' invalid opts mode 'arglist'
During the install step:
agent/agent.go:1: running "statik": exec: "statik": executable file not found in $PATH
I got this error.
How to build it perfectly?
Hello, jpillora,I encountered a problem. After I have modified the source code, I need to generate a binary file. But,Why can't my compiled webproc binary be used? @jpillora
I highly want to test this fine piece of software, but go stops on installing:
FROM golang:latest
RUN go get github.com/jpillora/webproc
package gomodules.xyz/jsonpatch/v2: cannot find package "gomodules.xyz/jsonpatch/v2" in any of:
/usr/local/go/src/gomodules.xyz/jsonpatch/v2 (from $GOROOT)
/go/src/gomodules.xyz/jsonpatch/v2 (from $GOPATH)
Not really experienced in Go ... some dependency declaration missed ?
This repository is based on docker_sdk, webproc, dnsmasq
When a container state change is detected, dnsmaq is automatically restarted (currently a scheduled task)
Since the dns scheme is adopted, the problem of nginx not parsing dns is indirectly fixed.
The warehouse is open source, everyone is welcome to maintain it together!
此存储库基于 docker_sdk, webproc, dnsmasq
当检测到容器状态变化时,自动重启 dnsmaq(目前为定时任务)
由于采用了dns方案,间接修复了nginx不解析dns的问题。
仓库开源,欢迎大家一起维护!
Github:AUDCH
Currently when saving config files it auto-restarts the process, this is often undesirable, especially as there is a restart button right next to it which can be used.
Some configuration files are picked up automatically by services without a restart being required. Alternatively it's often useful to ensure that a service won't be disrupted so the change can be made and a restart issued later.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.