Bump version 0.2.3.
This commit is contained in:
parent
e3d5bec579
commit
99c2525419
@ -12,7 +12,6 @@ jobs:
|
|||||||
name: build
|
name: build
|
||||||
command: |
|
command: |
|
||||||
go version
|
go version
|
||||||
rm config.yaml
|
|
||||||
go test -coverprofile=coverage.txt -covermode=atomic -p 1 . ./worker ./cli ./State
|
go test -coverprofile=coverage.txt -covermode=atomic -p 1 . ./worker ./cli ./State
|
||||||
bash <(curl -s https://codecov.io/bash)
|
bash <(curl -s https://codecov.io/bash)
|
||||||
docker:
|
docker:
|
||||||
|
@ -12,12 +12,13 @@ services:
|
|||||||
command: worker
|
command: worker
|
||||||
environment:
|
environment:
|
||||||
- "ACTOR_PEM=/actor.pem"
|
- "ACTOR_PEM=/actor.pem"
|
||||||
- "RELAY_SERVICENAME=YUKIMOCHI Toot Relay Service"
|
|
||||||
- "RELAY_DOMAIN=relay.toot.yukimochi.jp"
|
- "RELAY_DOMAIN=relay.toot.yukimochi.jp"
|
||||||
|
- "RELAY_SERVICENAME=YUKIMOCHI Toot Relay Service"
|
||||||
|
- "RELAY_BIND=0.0.0.0:8080"
|
||||||
- "REDIS_URL=redis://redis:6379"
|
- "REDIS_URL=redis://redis:6379"
|
||||||
volumes:
|
volumes:
|
||||||
- "./actor.pem:/actor.pem"
|
- "./actor.pem:/actor.pem"
|
||||||
# - "./config.yaml:/Activity-Relay/config.yaml"
|
# - "./config.yaml:/Activity-Relay/config.yaml"
|
||||||
|
|
||||||
server:
|
server:
|
||||||
build: .
|
build: .
|
||||||
@ -27,10 +28,10 @@ services:
|
|||||||
command: server
|
command: server
|
||||||
environment:
|
environment:
|
||||||
- "ACTOR_PEM=/actor.pem"
|
- "ACTOR_PEM=/actor.pem"
|
||||||
- "RELAY_SERVICENAME=YUKIMOCHI Toot Relay Service"
|
|
||||||
- "RELAY_DOMAIN=relay.toot.yukimochi.jp"
|
- "RELAY_DOMAIN=relay.toot.yukimochi.jp"
|
||||||
|
- "RELAY_SERVICENAME=YUKIMOCHI Toot Relay Service"
|
||||||
- "RELAY_BIND=0.0.0.0:8080"
|
- "RELAY_BIND=0.0.0.0:8080"
|
||||||
- "REDIS_URL=redis://redis:6379"
|
- "REDIS_URL=redis://redis:6379"
|
||||||
volumes:
|
volumes:
|
||||||
- "./actor.pem:/actor.pem"
|
- "./actor.pem:/actor.pem"
|
||||||
# - "./config.yaml:/Activity-Relay/config.yaml"
|
# - "./config.yaml:/Activity-Relay/config.yaml"
|
||||||
|
2
main.go
2
main.go
@ -65,7 +65,7 @@ func initConfig() {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
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)
|
relayState = state.NewState(redisClient)
|
||||||
actorCache = cache.New(5*time.Minute, 10*time.Minute)
|
actorCache = cache.New(5*time.Minute, 10*time.Minute)
|
||||||
Actor.GenerateSelfKey(hostURL, &hostPrivatekey.PublicKey)
|
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)
|
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`)
|
- `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_DOMAIN` (ex. `relay.toot.yukimochi.jp`)
|
||||||
- `RELAY_SERVICENAME` (ex. `YUKIMOCHI Toot Relay Service`)
|
- `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
|
## License
|
||||||
[](https://app.fossa.io/projects/git%2Bgithub.com%2Fyukimochi%2FActivity-Relay?ref=badge_large)
|
[](https://app.fossa.io/projects/git%2Bgithub.com%2Fyukimochi%2FActivity-Relay?ref=badge_large)
|
@ -84,7 +84,7 @@ func initConfig() {
|
|||||||
}
|
}
|
||||||
newNullLogger := NewNullLogger()
|
newNullLogger := NewNullLogger()
|
||||||
log.DEBUG = 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)
|
Actor.GenerateSelfKey(hostURL, &hostPrivatekey.PublicKey)
|
||||||
|
|
||||||
fmt.Println("Welcome to YUKIMOCHI Activity-Relay [Worker]\n - Configrations")
|
fmt.Println("Welcome to YUKIMOCHI Activity-Relay [Worker]\n - Configrations")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user