Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aligoren/netenv
A simple, network-based environment variable loader.
https://github.com/aligoren/netenv
dotenv dotenv-loader golang golang-library
Last synced: 2 days ago
JSON representation
A simple, network-based environment variable loader.
- Host: GitHub
- URL: https://github.com/aligoren/netenv
- Owner: aligoren
- Created: 2022-07-10T11:57:27.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-07-11T13:20:58.000Z (over 2 years ago)
- Last Synced: 2024-06-21T18:14:49.370Z (5 months ago)
- Topics: dotenv, dotenv-loader, golang, golang-library
- Language: Go
- Homepage:
- Size: 9.77 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Netenv
This is a project to get environment variables from the network.
## Description
When you need to make your environment variables public for your network, you have to share them with everyone. You can share your .env files through the network using Netenv.
You only need to listen to TCP with some arguments
## Simple Output
```json
{name:ali}${MYSQL_USERNAME:admin}${TEST:false}
```## Example netenv File
```yaml
global:
addr: ":8080"
auth:
enabled: true # set this true if you want to use authentication
username: admin
password: admin
iplist:
- 0.0.0.0
- 127.0.0.1envfiles:
project1:
default: dev
environments:
dev:
path: /home/ali/pyt/test.env
excludes:
- MYSQL_USERNAME
project2:
default: dev
environments:
dev:
path: /home/ali/pyt/project2_dev.env
stage:
path: /home/ali/pyt/project2_stage.env
prod:
path: /home/ali/pyt/project2_prod.env
```