Explorar el Código

add self hosted doc and installer

pull/44/head
Guillaume Vincent hace 8 años
padre
commit
b374930343
Se han modificado 3 ficheros con 48 adiciones y 1 borrados
  1. +1
    -1
      docker-compose.prod.yml
  2. +33
    -0
      lesspass.sh
  3. +14
    -0
      readme.md

+ 1
- 1
docker-compose.prod.yml Ver fichero

@@ -43,7 +43,7 @@ services:
- backend
- frontend
environment:
- DOMAIN=lesspass.com
- DOMAIN=${DOMAIN}
volumes:
postgresql:
www:

+ 33
- 0
lesspass.sh Ver fichero

@@ -0,0 +1,33 @@
#!/usr/bin/env bash

OUTPUT_DIR=LessPass
if [ -d "$OUTPUT_DIR" ]
then
echo "LessPass directory exists, move ./LessPass folder and re-run lesspass.sh script"
exit 1
fi

mkdir $OUTPUT_DIR
cd $OUTPUT_DIR

curl -o docker-compose.yml https://raw.githubusercontent.com/lesspass/lesspass/master/docker-compose.prod.yml

DATABASE_PASSWORD=$(date +%s | sha256sum | base64 | head -c 32)
SECRET_KEY=$(date +%s | sha256sum | base64 | head -c 32)

echo "Please enter your domain name: "
read DOMAIN

# create env file
cat >> .env << EOF
DATABASE_PASSWORD=$DATABASE_PASSWORD
SECRET_KEY=$SECRET_KEY
DOMAIN=$DOMAIN
EOF

# pull new images
docker-compose pull

# restart container
docker-compose down
docker-compose up -d

+ 14
- 0
readme.md Ver fichero

@@ -18,6 +18,20 @@ LessPass open source password manager (https://lesspass.com)
- [web extension](https://github.com/lesspass/webextension) : chrome and firefox web extension for lesspass password manager


## Self Host your LessPass Database

### requirements

* docker
* docker-compose

### install

simply run

bash <(curl -s https://raw.githubusercontent.com/lesspass/lesspass/master/lesspass.sh)


## Status

| module | tests |


Cargando…
Cancelar
Guardar