Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 1 addition & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ The following options are currently available to install the CLI locally.

Here are the server configuration options.

### Command line flags
Command line flags:

```console
$ yopass-server -h
Expand All @@ -100,22 +100,6 @@ $ yopass-server -h

Encrypted secrets can be stored either in Memcached or Redis by changing the `--database` flag.

### Environment variables

```console
YOPASS_ADDRESS # listen address (default 0.0.0.0)
YOPASS_DATABASE # database backend ('memcached' or 'redis') (default "memcached")
YOPASS_MAX_LENGTH # max length of encrypted secret (default 10000)
YOPASS_MEMCACHED # Memcached address (default "localhost:11211")
YOPASS_METRICS_PORT # metrics server listen port (default -1)
YOPASS_PORT # listen port (default 1337)
YOPASS_REDIS # Redis URL (default "redis://localhost:6379/0")
YOPASS_TLS_CERT # path to TLS certificate
YOPASS_TLS_KEY # path to TLS key
```

see [docker compose example](deploy/docker-compose/env-config/docker-compose.yml)

### Docker Compose

Use the Docker Compose file `deploy/with-nginx-and-letsencrypt/docker-compose.yml` to set up a yopass instance with TLS transport encryption and certificate auto renewal using [Let's Encrypt](https://letsencrypt.org/). First point your domain to the host you want to run yopass on. Then replace the placeholder values for `VIRTUAL_HOST`, `LETSENCRYPT_HOST` and `LETSENCRYPT_EMAIL` in `deploy/with-nginx-and-letsencrypt/docker-compose.yml` with your values. Afterwards change the directory to `deploy/with-nginx-and-letsencrypt` and start the containers with:
Expand Down
1 change: 0 additions & 1 deletion cmd/yopass-server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ func init() {
pflag.String("cors-allow-origin", "*", "Access-Control-Allow-Origin")
pflag.CommandLine.AddGoFlag(&flag.Flag{Name: "log-level", Usage: "Log level", Value: &logLevel})

viper.SetEnvPrefix("yopass")
viper.AutomaticEnv()
viper.SetEnvKeyReplacer(strings.NewReplacer("-", "_"))
_ = viper.BindPFlags(pflag.CommandLine)
Expand Down
34 changes: 0 additions & 34 deletions deploy/docker-compose/env-config/docker-compose.yml

This file was deleted.

Loading