From 261a14e343b94e2342a18a6741e1686ec008ee80 Mon Sep 17 00:00:00 2001 From: Naoki Kosaka Date: Sun, 23 Dec 2018 15:19:10 +0900 Subject: [PATCH] Fix readme. --- .circleci/config.yml | 2 +- main.go | 2 +- readme.md | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 753b850..aecbac7 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -14,7 +14,7 @@ jobs: command: | go get -u github.com/golang/dep/cmd/dep dep ensure - go test -coverprofile=coverage.txt . ./worker ./cli + go test -coverprofile=coverage.txt -covermode=atomic -p 1 . ./worker ./cli bash <(curl -s https://codecov.io/bash) docker: docker: diff --git a/main.go b/main.go index f469fbc..d1a50f4 100644 --- a/main.go +++ b/main.go @@ -33,8 +33,8 @@ var uaString string func initConfig() { viper.BindEnv("actor_pem") viper.BindEnv("relay_domain") - viper.BindEnv("redis_url") viper.BindEnv("relay_bind") + viper.BindEnv("redis_url") hostURL, _ = url.Parse("https://" + viper.GetString("relay_domain")) hostPrivatekey, _ = keyloader.ReadPrivateKeyRSAfromPath(viper.GetString("actor_pem")) redisClient := redis.NewClient(&redis.Options{ diff --git a/readme.md b/readme.md index a71caa6..24ead19 100644 --- a/readme.md +++ b/readme.md @@ -26,6 +26,7 @@ See [GitHub wiki](https://github.com/yukimochi/Activity-Relay/wiki) - `ACTOR_PEM` (ex. `/actor.pem`) - `RELAY_DOMAIN` (ex. `relay.toot.yukimochi.jp`) + - `RELAY_SERVICENAME` (ex. `YUKIMOCHI Toot Relay Service`) - `RELAY_BIND` (ex. `0.0.0.0:8080`) - `REDIS_URL` (ex. `127.0.0.1:6379`)