diff --git a/ActivityPub/activity.go b/ActivityPub/activity.go index dd4666d..37a4ef7 100644 --- a/ActivityPub/activity.go +++ b/ActivityPub/activity.go @@ -19,7 +19,7 @@ import ( "github.com/yukimochi/httpsig" ) -var UA_STRING = "YUKIMOCHI Toot Relay Service (golang net/http; Activity-Relay v0.0.2; " + os.Getenv("RELAY_DOMAIN") + ")" +var UA_STRING = os.Getenv("RELAY_SERVICENAME") + " (golang net/http; Activity-Relay v0.1.0; " + os.Getenv("RELAY_DOMAIN") + ")" func appendSignature(r *http.Request, body *[]byte, KeyID string, pKey *rsa.PrivateKey) error { hash := sha256.New() diff --git a/docker-compose.yml b/docker-compose.yml index b6077c9..5850d5d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -12,6 +12,7 @@ services: command: worker environment: - "ACTOR_PEM=/actor.pem" + - "RELAY_SERVICENAME=YUKIMOCHI Toot Relay Service" - "RELAY_DOMAIN=relay.toot.yukimochi.jp" - "REDIS_URL=redis:6379" volumes: @@ -25,6 +26,7 @@ services: command: server environment: - "ACTOR_PEM=/actor.pem" + - "RELAY_SERVICENAME=YUKIMOCHI Toot Relay Service" - "RELAY_DOMAIN=relay.toot.yukimochi.jp" - "RELAY_BIND=0.0.0.0:8080" - "REDIS_URL=redis:6379"