Skip to content

Commit

Permalink
Merge pull request #54 from yukimochi/fix/apply-fmt
Browse files Browse the repository at this point in the history
Apply go fmt and delete debug stdout.
  • Loading branch information
yukimochi committed Nov 16, 2022
2 parents 50ef223 + 3ecc5a6 commit b91ec03
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 15 deletions.
33 changes: 19 additions & 14 deletions main.go
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
/*
Yet another powerful customizable ActivityPub relay server written in Go.
Run Activity-Relay
# Run Activity-Relay
API Server
./Activity-Relay --config /path/to/config.yml server
Job Worker
./Activity-Relay --config /path/to/config.yml worker
CLI Management Utility
./Activity-Relay --config /path/to/config.yml control
Config
# Config
YAML Format
ACTOR_PEM: /var/lib/relay/actor.pem
REDIS_URL: redis://localhost:6379
RELAY_BIND: 0.0.0.0:8080
Expand All @@ -23,19 +29,19 @@ YAML Format
YUKIMOCHI Toot Relay Service is Running by Activity-Relay
RELAY_ICON: https://example.com/example_icon.png
RELAY_IMAGE: https://example.com/example_image.png
Environment Variable
This is Optional : When config file not exist, use environment variables.
- ACTOR_PEM
- REDIS_URL
- RELAY_BIND
- RELAY_DOMAIN
- RELAY_SERVICENAME
- JOB_CONCURRENCY
- RELAY_SUMMARY
- RELAY_ICON
- RELAY_IMAGE
# Environment Variable
This is Optional : When config file not exist, use environment variables.
- ACTOR_PEM
- REDIS_URL
- RELAY_BIND
- RELAY_DOMAIN
- RELAY_SERVICENAME
- JOB_CONCURRENCY
- RELAY_SUMMARY
- RELAY_ICON
- RELAY_IMAGE
*/
package main

Expand Down Expand Up @@ -123,7 +129,6 @@ func buildCommand() *cobra.Command {
func initConfig(cmd *cobra.Command) {
if verbose {
logrus.SetLevel(logrus.DebugLevel)
fmt.Println("DEBUG VIEW")
}

configPath := cmd.Flag("config").Value.String()
Expand Down
2 changes: 1 addition & 1 deletion models/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type PublicKey struct {
PublicKeyPem string `json:"publicKeyPem,omitempty"`
}

//Endpoints : Contains SharedInbox address.
// Endpoints : Contains SharedInbox address.
type Endpoints struct {
SharedInbox string `json:"sharedInbox,omitempty"`
}
Expand Down

0 comments on commit b91ec03

Please sign in to comment.