Quellcode durchsuchen

Remove old self hosted files and add affiliate link in README

pull/531/head
Guillaume Vincent vor 4 Jahren
Ursprung
Commit
6a246608ca
4 geänderte Dateien mit 16 neuen und 141 gelöschten Zeilen
  1. +12
    -11
      README.md
  2. +4
    -4
      containers/docker-compose.yml
  3. +0
    -49
      docker-compose.prod.yml
  4. +0
    -77
      install-lesspass.sh

+ 12
- 11
README.md Datei anzeigen

@@ -2,29 +2,30 @@

# LessPass

LessPass is an open-source password manager. Generate complex, secure passwords for any website or service, without saving them!
LessPass is a stateless password manager.

Visit our website at https://lesspass.com
Stop wasting your time synchronizing your encrypted vault. Remember one master password to access your passwords, anywhere, anytime. No sync needed. Try the demo at [www.lesspass.com](https://www.lesspass.com).

## WIP
## Affiliate link

:warning: We are reorganizing the repository. This work is not finished yet.
LessPass servers are hosted on Vultr. Create an account on Vultr and receive \$100 to test their platform.

## How does it work?
[![Vultr Banner](https://www.vultr.com/media/banners/banner_728x90.png)](https://www.vultr.com/?ref=6830452)

* :gb: [LessPass - How Does It Work?](https://blog.lesspass.com/lesspass-how-it-works-dde742dd18a4#.vbgschksh)
* :fr: [LessPass - comment ça marche?](https://blog.lesspass.com/lesspass-comment-%C3%A7a-marche-9f1201fffda5#.yjmd1bcad)
* :de: [LessPass - Wie funktioniert das?](https://blog.lesspass.com/lesspass-wie-funktioniert-das-9483e5fc2c09)
* :it: [LessPass - Come funziona?](https://blog.lesspass.com/lesspass-come-funziona-5d1785b4a564)
## How does it work?

- :gb: [LessPass - How Does It Work?](https://blog.lesspass.com/lesspass-how-it-works-dde742dd18a4#.vbgschksh)
- :fr: [LessPass - comment ça marche?](https://blog.lesspass.com/lesspass-comment-%C3%A7a-marche-9f1201fffda5#.yjmd1bcad)
- :de: [LessPass - Wie funktioniert das?](https://blog.lesspass.com/lesspass-wie-funktioniert-das-9483e5fc2c09)
- :it: [LessPass - Come funziona?](https://blog.lesspass.com/lesspass-come-funziona-5d1785b4a564)

## Videos

* :fr: [Présentation de LessPass](https://www.youtube.com/watch?v=ha9jJJAjHq4)
- :fr: [Présentation de LessPass](https://www.youtube.com/watch?v=ha9jJJAjHq4)

## Podcast

* :gb: [Ask Noah show interview](https://podcast.asknoahshow.com/114)
- :gb: [Ask Noah show interview](https://podcast.asknoahshow.com/114)

## CLI



+ 4
- 4
containers/docker-compose.yml Datei anzeigen

@@ -2,7 +2,7 @@ version: "3"
services:
db:
restart: always
image: postgres:9.5
image: postgres:10
volumes:
- postgresql:/var/lib/postgresql/data
environment:
@@ -11,7 +11,7 @@ services:
- POSTGRES_PASSWORD
backend:
restart: always
image: quay.io/lesspass/lesspass-backend:latest
image: quay.io/lesspass/backend:latest
links:
- db
environment:
@@ -35,10 +35,10 @@ services:
- www:/app/www
frontend:
restart: always
image: quay.io/lesspass/lesspass-frontend:latest
image: quay.io/lesspass/frontend:latest
webserver:
restart: always
image: quay.io/lesspass/lesspass-webserver:latest
image: quay.io/lesspass/webserver:latest
ports:
- 80:80
- 443:443


+ 0
- 49
docker-compose.prod.yml Datei anzeigen

@@ -1,49 +0,0 @@
version: "2"
services:
db:
restart: always
image: postgres:9.5
volumes:
- postgresql:/var/lib/postgresql/data
environment:
POSTGRES_DB: "postgres"
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
backend:
restart: always
image: lesspass/backend:latest
expose:
- "8000"
volumes:
- www:/backend/www
links:
- db
env_file:
- .env
environment:
DATABASE_ENGINE: "django.db.backends.postgresql"
DATABASE_NAME: "postgres"
DATABASE_USER: "postgres"
DATABASE_HOST: "db"
DATABASE_PORT: "5432"
frontend:
restart: always
image: lesspass/frontend:latest
nginx:
restart: always
image: lesspass/nginx:letsencrypt
ports:
- "80:80"
- "443:443"
volumes_from:
- backend
volumes:
- ./letsencrypt:/etc/letsencrypt
links:
- backend
- frontend
environment:
- DOMAIN=${DOMAIN}
volumes:
postgresql:
www:

+ 0
- 77
install-lesspass.sh Datei anzeigen

@@ -1,77 +0,0 @@
#!/usr/bin/env bash
set -e

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

####################
# Context creation #
####################
mkdir $OUTPUT_DIR
cd $OUTPUT_DIR

if [ "$#" -eq "2" ]
then
DOMAIN=$1
EMAIL=$2
else
echo "Please enter your domain name (e.g. example.org): "
read DOMAIN
echo
echo "Please enter your email (Used to generate an HTTPS certificate with LetsEncrypt):"
read EMAIL
fi

DATABASE_PASSWORD=$(LC_ALL=C tr -dc A-Za-z0-9_ </dev/urandom | head -c 32)
SECRET_KEY=$(LC_ALL=C tr -dc A-Za-z0-9_ </dev/urandom | head -c 32)

cat >> .env << EOF
ALLOWED_HOSTS=.$DOMAIN
DATABASE_PASSWORD=$DATABASE_PASSWORD
SECRET_KEY=$SECRET_KEY
DOMAIN=$DOMAIN
EMAIL=$EMAIL
EOF

#######################
# Docker compose file #
#######################
curl -s -o docker-compose.yml https://raw.githubusercontent.com/lesspass/lesspass/master/docker-compose.prod.yml
docker-compose pull
docker-compose down

###############
# LetsEncrypt #
###############
echo "Create LetsEncrypt certificate..."
mkdir letsencrypt
docker run -it --rm -p 443:443 -p 80:80 -v $PWD/letsencrypt:/etc/letsencrypt/ certbot/certbot certonly --standalone --noninteractive --quiet --email $EMAIL --agree-tos -d $DOMAIN
docker run -it --rm -v $PWD/letsencrypt/live/:/certificates/ lesspass/openssl openssl dhparam -out /certificates/$DOMAIN/dhparam.pem 4096

############
# LessPass #
############
curl -s -o update.sh https://raw.githubusercontent.com/lesspass/lesspass/master/scripts/update.sh
chmod u+x update.sh
docker-compose up -d
echo "--------------------------------------------"
echo "Congratulation LessPass Database is running!"
echo "--------------------------------------------"
echo "visit https://$DOMAIN"
echo
echo "## Create super user"
echo "see: https://github.com/lesspass/lesspass#create-super-user"
echo
echo "## Update LessPass"
echo "Just run ./update.sh"
echo "It renews the LestEncrypt certificate and updates LessPass"


Laden…
Abbrechen
Speichern