Giter Site home page Giter Site logo

pgl-stack's Introduction

First time deployment

If your server does not have a gpg key, you have to generate one. You can do so by running the following command:

gpg --gen-key

Then import the key to your local gpg keychain by running the following command:

On the server:

gpg --export-secret-keys --armor <email-of-the-server> > <path-to-the-key>

Then copy the key to your local machine and import it by running the following command:

gpg --import <path-to-the-key>

Then enroll the key to the git-secret tool by running the following command:

git secret tell <email-of-the-server>
git secret reveal
git secret hide -d

Finally, commit and push the changes to the repository.

Automating updates

To add automatic update of the confirguration contained in this repository, you can add the following to your crontab (run crontab -e to edit your crontab):

# Update configuration
* * * * * bash /path/to/this/repository/.scripts/fetch-and-update.sh

Secrets Management

git-secret

This repository contains encrypted secrets thanks to git-secret(GitHub).

To decrypt the secrets, you need to have the git-secret tool installed. You can install by following the instructions here.

After installing git-secret, you can decrypt the secrets by running git secret reveal (note that you need to be authorized to decrypt the secrets).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.