Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/Infisical/infisical into main
Browse files Browse the repository at this point in the history
  • Loading branch information
maidul98 committed Nov 18, 2022
2 parents 94abacb + 4546674 commit 82621e3
Show file tree
Hide file tree
Showing 11 changed files with 162 additions and 101 deletions.
4 changes: 2 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ EMAIL_TOKEN_LIFETIME=
MONGO_URL=mongodb://root:example@mongo:27017/?authSource=admin

# Optional credentials for MongoDB container instance
MONGO_USERNAME=root
MONGO_PASSWORD=example
MONGO_INITDB_ROOT_USERNAME=root
MONGO_INITDB_ROOT_PASSWORD=example

# Mongo-Express vars (needed for development only)
ME_CONFIG_MONGODB_ADMINUSERNAME=root
Expand Down
6 changes: 4 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Contributing to Infisical

Thanks for taking the time to contribute!
Thanks for taking the time to contribute! 😃 🚀

Please refer to our Contributing Guide for instructions on how to contribute.
Please refer to our [Contributing Guide](https://infisical.com/docs/contributing) for instructions on how to contribute.

We also have some 🔥amazing🔥 merch for our contributors. Please reach out to [email protected] for more info 👀
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
build:
docker-compose -f docker-compose.yml -f docker-compose.prod.yml build
docker-compose -f docker-compose.yml build

push:
docker-compose -f docker-compose.yml -f docker-compose.prod.yml push
docker-compose -f docker-compose.yml push

up-dev:
docker-compose -f docker-compose.yml -f docker-compose.dev.yml up --build
docker-compose -f docker-compose.dev.yml up

up-prod:
docker-compose -f docker-compose.yml -f docker-compose.prod.yml up --build
docker-compose -f docker-compose.yml up

down:
docker-compose down
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<img width="300" src="/img/logoname-white.svg#gh-dark-mode-only" alt="infisical">
</h1>
<p align="center">
<p align="center">Open-source, end-to-end encrypted, 1-line-of-code tool to sync environment variables across you team and infrastructure.</p>
<p align="center">Open-source, end-to-end encrypted, easy-to-use tool to auto-sync environment variables across you team and infrastructure.</p>
</p>

<h4 align="center">
Expand All @@ -30,7 +30,7 @@
**[Infisical](https://infisical.com)** is an open source tool to help teams manage and sync environment variables across their development workflow and infrastructure. It's designed to be simple and end-to-end encrypted. You can start with just 1 line of code within 10 minutes.

- **User-Friendly Dashboard** to manage your organization's environment variables within projects
- **[Language-Agnostic CLI](https://infisical.com/docs/CLI)** that pulls and injects environment variables into your local workflow
- **[Language-Agnostic CLI](https://infisical.com/docs/CLI)** that pulls and injects environment variables into your local workflow
- **[Complete control over your data](https://infisical.com/docs/self_host_overview)** - host it yourself on any infrastructure
- **Navigate Multiple Environments** per project (e.g. development, staging, production, etc.)
- **Personal/Shared** scoping for environment variables
Expand All @@ -46,9 +46,9 @@ And more.

## What's cool about this?

Infisical is the first open-source end-to-end encrypted secret manager that takes less than 10 minutes to setup.
Infisical is the first open-source end-to-end encrypted secret manager that takes less than 10 minutes to setup.

Yes. There are other secret managers out there. Some of them are incredibly complicated - they were built for security teams, not developers. The other ones are not end-to-end encrypted, and because of that they can read your secrets. If you care about efficiency and security at the same time - Infisical is right for you.
Yes. There are other secret managers out there. Some of them are incredibly complicated - they were built for security teams, not developers. The other ones are not end-to-end encrypted, and because of that they can read your secrets. If you care about efficiency and security at the same time - Infisical is right for you.

On top of that, Infisical is one of the few open source solutions. Need any integrations or want a new feature? You can [create an issue for us](https://github.com/Infisical/infisical/issues) or contribute directly! This is the power of open-source. :)

Expand Down Expand Up @@ -88,7 +88,6 @@ We're currently setting the foundation and building integrations so secrets can
- [ ] GitLab
- [ ] CircleCI


We're currently in Public Alpha.

## Open-source vs. paid
Expand All @@ -99,12 +98,12 @@ This repo is entirely MIT licensed, with the exception of the `ee` directory whi

Looking to report a security vulnerability? Please don't post about it in GitHub issue. Instead, refer to our [SECURITY.md](./SECURITY.md) file.


## Contributors 🦸

[//]: contributor-faces

<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore-start -->
<!-- markdownlint-disable -->
<a href="https://github.com/dangtony98"><img src="https://avatars.githubusercontent.com/u/25857006?v=4" width="50" height="50" alt=""/></a> <a href="https://github.com/vlad-matsiiako"><img src="https://avatars.githubusercontent.com/u/78047717?s=96&v=4" width="50" height="50" alt=""/></a> <a href="https://github.com/maidul98"><img src="https://avatars.githubusercontent.com/u/9300960?v=4" width="50" height="50" alt=""/></a> <a href="https://github.com/hanywang2"><img src="https://avatars.githubusercontent.com/u/44352119?v=4" width="50" height="50" alt=""/></a>

<a href="https://github.com/dangtony98"><img src="https://avatars.githubusercontent.com/u/25857006?v=4" width="50" height="50" alt=""/></a> <a href="https://github.com/vlad-matsiiako"><img src="https://avatars.githubusercontent.com/u/78047717?s=96&v=4" width="50" height="50" alt=""/></a> <a href="https://github.com/maidul98"><img src="https://avatars.githubusercontent.com/u/9300960?v=4" width="50" height="50" alt=""/></a> <a href="https://github.com/hanywang2"><img src="https://avatars.githubusercontent.com/u/44352119?v=4" width="50" height="50" alt=""/></a> <a href="https://github.com/tobias-mintlify"><img src="https://avatars.githubusercontent.com/u/110702161?v=4" width="50" height="50" alt=""/></a>
1 change: 1 addition & 0 deletions backend/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import {
} from './routes';

const connectWithRetry = () => {
console.log('MONGO_URL', MONGO_URL);
mongoose.connect(MONGO_URL)
.then(() => console.log('Successfully connected to DB'))
.catch((e) => {
Expand Down
42 changes: 27 additions & 15 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
version: '3'

services:
nginx:
container_name: infisical-dev-nginx
image: nginx
ports:
- 8080:80
volumes:
- ./nginx/default.dev.conf:/etc/nginx/conf.d/default.conf:ro
depends_on:
- frontend
- backend
networks:
- infisical-dev

backend:
container_name: infisical-backend
container_name: infisical-dev-backend
restart: unless-stopped
depends_on:
- mongo
Expand All @@ -17,10 +30,10 @@ services:
command: npm run dev
env_file: .env
networks:
- infisical
- infisical-dev

frontend:
container_name: infisical-frontend
container_name: infisical-dev-frontend
restart: unless-stopped
depends_on:
- backend
Expand All @@ -35,32 +48,31 @@ services:
- ./frontend/components:/app/components
env_file: .env
networks:
- infisical
- infisical-dev

mongo:
container_name: infisical-mongo
image: mongo
container_name: infisical-dev-mongo
restart: always
env_file:
- .env
env_file: .env
volumes:
- mongo-data:/data/db
networks:
- infisical
- infisical-dev

mongo-express:
container_name: infisical-mongo-express
container_name: infisical-dev-mongo-express
image: mongo-express
restart: always
depends_on:
- mongo
env_file: .env
ports:
- 8081:8081
env_file:
- .env
networks:
- infisical
- infisical-dev

volumes:
mongo-data:
driver: local
driver: local

networks:
infisical-dev:
57 changes: 0 additions & 57 deletions docker-compose.prod.yml

This file was deleted.

58 changes: 56 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,67 @@ services:
container_name: infisical-nginx
image: nginx
ports:
- "8080:80"
- 80:80
- 443:443
volumes:
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
depends_on:
- frontend
- backend
networks:
- infisical

backend:
platform: linux/amd64
container_name: infisical-backend
restart: unless-stopped
depends_on:
- frontend
- mongo
build:
context: ./backend
dockerfile: Dockerfile
image: infisical/backend
volumes:
- ./backend/src:/app/src
- ./backend/nodemon.json:/app/nodemon.json
- /app/node_modules
command: npm run start
env_file: .env
networks:
- infisical

frontend:
platform: linux/amd64
container_name: infisical-frontend
restart: unless-stopped
depends_on:
- backend
build:
context: ./frontend
dockerfile: Dockerfile.prod
image: infisical/frontend
volumes:
- ./frontend/pages:/app/pages
- ./frontend/public:/app/public
- ./frontend/styles:/app/styles
- ./frontend/components:/app/components
- ./frontend/next.config.js:/app/next.config.js
env_file: .env
networks:
- infisical

mongo:
container_name: infisical-mongo
image: mongo
restart: always
volumes:
- mongo-data:/data/db
networks:
- infisical

volumes:
mongo-data:
driver: local

networks:
infisical:
17 changes: 10 additions & 7 deletions docs/mint.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,20 @@
{
"name": "Security",
"icon": "shield-halved",
"url": "https://infisical.com/security"
"url": "https://infisical.com/security",
"color": {
"from": "#A1B659",
"to": "#F8B7BD"
}
},
{
"name": "Blog",
"icon": "newspaper",
"url": "https://infisical.com/blog"
"url": "https://infisical.com/blog",
"color": {
"from": "#A1B659",
"to": "#F8B7BD"
}
}
],
"navigation": [
Expand Down Expand Up @@ -73,10 +81,5 @@
]
}
],
"classes": {
"topbarCtaButton": "bg-[#BADC58] hover:opacity-80 text-black rounded-md px-7 py-2.5 font-semibold",
"anchors": "group-hover:bg-gradient-to-br from-sky-400 to-primary",
"activeAnchors": "bg-gradient-to-br"
},
"backgroundImage": "/docs/images/background.png"
}
25 changes: 20 additions & 5 deletions nginx/default.conf
Original file line number Diff line number Diff line change
@@ -1,10 +1,25 @@
server {
listen 80;
listen [::]:80;

server_name api.infisical.com;

return 302 https://$server_name$request_uri;
}

server {
listen 443 default_server ssl http2;
listen [::]:443 ssl http2;

server_name api.infiscal.com;

ssl_certificate /etc/ssl/cert.pem;
ssl_certificate_key /etc/ssl/cert.key;

location /api {
proxy_set_header X-Real-RIP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;

Expand All @@ -13,16 +28,16 @@ server {

proxy_cookie_path / "/; secure; HttpOnly; SameSite=strict";
}

location / {
include /etc/nginx/mime.types;

proxy_set_header X-Real-RIP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;

proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";

Expand Down
Loading

0 comments on commit 82621e3

Please sign in to comment.