Skip to content

Commit

Permalink
Bump version 0.2.3.
Browse files Browse the repository at this point in the history
  • Loading branch information
Naoki Kosaka committed Jun 2, 2019
1 parent e3d5bec commit 99c2525
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 11 deletions.
1 change: 0 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ jobs:
name: build
command: |
go version
rm config.yaml
go test -coverprofile=coverage.txt -covermode=atomic -p 1 . ./worker ./cli ./State
bash <(curl -s https://codecov.io/bash)
docker:
Expand Down
File renamed without changes.
9 changes: 5 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@ services:
command: worker
environment:
- "ACTOR_PEM=/actor.pem"
- "RELAY_SERVICENAME=YUKIMOCHI Toot Relay Service"
- "RELAY_DOMAIN=relay.toot.yukimochi.jp"
- "RELAY_SERVICENAME=YUKIMOCHI Toot Relay Service"
- "RELAY_BIND=0.0.0.0:8080"
- "REDIS_URL=redis://redis:6379"
volumes:
- "./actor.pem:/actor.pem"
# - "./config.yaml:/Activity-Relay/config.yaml"
# - "./config.yaml:/Activity-Relay/config.yaml"

server:
build: .
Expand All @@ -27,10 +28,10 @@ services:
command: server
environment:
- "ACTOR_PEM=/actor.pem"
- "RELAY_SERVICENAME=YUKIMOCHI Toot Relay Service"
- "RELAY_DOMAIN=relay.toot.yukimochi.jp"
- "RELAY_SERVICENAME=YUKIMOCHI Toot Relay Service"
- "RELAY_BIND=0.0.0.0:8080"
- "REDIS_URL=redis://redis:6379"
volumes:
- "./actor.pem:/actor.pem"
# - "./config.yaml:/Activity-Relay/config.yaml"
# - "./config.yaml:/Activity-Relay/config.yaml"
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func initConfig() {
if err != nil {
panic(err)
}
uaString = viper.GetString("relay_servicename") + " (golang net/http; Activity-Relay v0.2.2; " + hostURL.Host + ")"
uaString = viper.GetString("relay_servicename") + " (golang net/http; Activity-Relay v0.2.3; " + hostURL.Host + ")"
relayState = state.NewState(redisClient)
actorCache = cache.New(5*time.Minute, 10*time.Minute)
Actor.GenerateSelfKey(hostURL, &hostPrivatekey.PublicKey)
Expand Down
26 changes: 22 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,32 @@

See [GitHub wiki](https://github.com/yukimochi/Activity-Relay/wiki)

## Environment Variable
## Configration

### `config.yml`

```yaml config.yml
actor_pem: /actor.pem
redis_url: redis://redis:6379

relay_bind: 0.0.0.0:8080
relay_domain: relay.toot.yukimochi.jp
relay_servicename: YUKIMOCHI Toot Relay Service
# relay_summary: |

# relay_icon: https://
# relay_image: https://
```

### `Environment Variable`

This is **Optional** : When `config.yml` not exists, use environment variable.

- `ACTOR_PEM` (ex. `/actor.pem`)
- `REDIS_URL` (ex. `redis://127.0.0.1:6379/0`)
- `RELAY_BIND` (ex. `0.0.0.0:8080`)
- `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. `redis://127.0.0.1:6379/0`)


## License
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fyukimochi%2FActivity-Relay.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fyukimochi%2FActivity-Relay?ref=badge_large)
2 changes: 1 addition & 1 deletion worker/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func initConfig() {
}
newNullLogger := NewNullLogger()
log.DEBUG = newNullLogger
uaString = viper.GetString("relay_servicename") + " (golang net/http; Activity-Relay v0.2.2; " + hostURL.Host + ")"
uaString = viper.GetString("relay_servicename") + " (golang net/http; Activity-Relay v0.2.3; " + hostURL.Host + ")"
Actor.GenerateSelfKey(hostURL, &hostPrivatekey.PublicKey)

fmt.Println("Welcome to YUKIMOCHI Activity-Relay [Worker]\n - Configrations")
Expand Down

0 comments on commit 99c2525

Please sign in to comment.