-
Notifications
You must be signed in to change notification settings - Fork 129
PostUp, PostDown & AllowedIPs #6
Comments
Excellent idea! Perhaps we should add an "advanced view" to just be able to edit the config fields directly? |
That would be good. I would do it myself and push it if I could get around this: |
Easiest way to build when developing is to use the Makefile. The frontend bits are first built with npm, and then assetfs includes the generated files into a single binary for distribution. You can also run it without embedding the binary in "dev mode" though - that's what i've been doing when frontending. In one shell, run In another, run The backend will then proxy ui assets to the nodejs server, allowing fast iteration on the javascript bits, keeping the browser pointed at http://localhost:8080/ https://github.com/EmbarkStudios/wireguard-ui/blob/master/Makefile |
This is what I'm getting when running
|
I was able to build the go binary by using buildah like:
|
Not aware if you have noticed the latest documentation updates @tozjerimiah, now there is a documentation on how to fix your problem with dist files for ui. That problem is related to environment variables for Go. |
I got the urge to have a go at working on this but am again struggling to build:
I am running Ubuntu 20.04, using instructions for go, setup environment, Install LTS version of nodejs for frontend, Fetch wg-ui (from my own fork), Build binary with ui. |
+1 for this. |
@ptruman Can you post the Dockerfile for the UI on top of LinuxServer.io's WG image? I'm having issues running this container with internet access, and think this approach will be what I'm looking for in the meantime. |
Here you go. The Dockerfile below will use mostly recent Debian Node/GoLang images and pull wireguard-ui and build correctly (the fun being it creates folders you need to find and copy around. The wireguard-ui binary lives in /
Assuming you call your image "wgu" you can run the following to get into the container if it won't start
If you then try to run /wireguard-ui and get "operation not permitted" you are missing a docker capability (per the bold above). Otherwise it will start on port 8080 and you can try it. I got it going but didn't carry on as: |
@ptruman I'd love to get this image running. Here's my compose file:
I've combined my linuxserverio wireguard config with this image's default config, but I'm not able to get it working. Getting into the web ui and adding a key works just fine, but my client isn't able to connect to the wireguard server. I had the normal linuxserver image working, so I know it's not a port forwarding issue or something like that. Is this the right configuration? |
Looks good, but is there any way of using the PostUp, PostDown & AllowedIPs features with wireguard-ui?
The text was updated successfully, but these errors were encountered: