etherai / selfhosted-gateway

Self-hosted Docker native tunneling to localhost. Expose local docker containers to the public Internet via a simple docker compose interface.
https://fractalnetworks.co
GNU Affero General Public License v3.0
1.32k stars 66 forks source link

Optionally output WireGuard config files #19

Open thebalaa opened 1 year ago

thebalaa commented 1 year ago

Current behavior of make link ... is to output a docker-compose service snippet with WireGuard parameters as environment variables.

A welcome convenience would be the ability to output a WireGuard configuration that can be consumed directly by the existing Linux, Windows and macOS WireGuard clients.

Dotsch2005 commented 9 months ago

Do you mean that an implementation of make wireguard or make wg creates a link at the gateway and then outputs the client wg0. conf for direct use?

I find this an interesting idea and would give it a try during the week.

thebalaa commented 9 months ago

Right, instead of outputting the compose file we would output the WireGuard config file.

I appreciate your help, let me know if you have any questions.