Skip to content

aligoren/netenv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

{name:ali}${MYSQL_USERNAME:admin}${TEST:false}

Example netenv File

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.1

envfiles:
  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

About

A simple, network-based environment variable loader.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages