Bump version 0.2.3.
This commit is contained in:
parent
e3d5bec579
commit
99c2525419
@ -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:
|
||||
|
@ -12,8 +12,9 @@ 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"
|
||||
@ -27,8 +28,8 @@ 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:
|
||||
|
2
main.go
2
main.go
@ -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)
|
||||
|
26
readme.md
26
readme.md
@ -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
|
||||
[](https://app.fossa.io/projects/git%2Bgithub.com%2Fyukimochi%2FActivity-Relay?ref=badge_large)
|
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user