Add makefile .gitignore, change example config and add go mod

This commit is contained in:
Romain de Laage 2021-03-01 12:41:08 +01:00
parent 6967b5606a
commit e49948777d
Signed by: rdelaage
GPG Key ID: 534845FADDF0C329
4 changed files with 17 additions and 3 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
certs/*
build/*

9
Makefile Normal file
View File

@ -0,0 +1,9 @@
all: amd64 arm7
amd64:
mkdir -p build
GOOS=linux GOARCH=amd64 go build -o build/mastogem-amd64
arm7:
mkdir -p build
GOOS=linux GOARCH=arm GOARM=7 go build -o build/mastogem-arm7

View File

@ -1,8 +1,8 @@
{
"listen": "0.0.0.0:1965",
"cert_path": "cert.pem",
"key_path": "key.rsa",
"cert_path": "certs/cert.pem",
"key_path": "certs/key.rsa",
"base_url": "https://mamot.fr",
"title": "MastoGem",
"home_message": "Welcome on MastoGem, a Mastodon proxy for Gemini.\\nYou can view the last 20 toots of a Mastodon account by providing its id, for example:\\n=> gemini://localhost/310515 My Mastodon account"
"home_message": "Welcome on MastoGem, a Mastodon proxy for Gemini.\nYou can view the last 20 toots of a Mastodon account by providing its id, for example:\n=> gemini://localhost/310515 My Mastodon account"
}

3
go.mod Normal file
View File

@ -0,0 +1,3 @@
module git.rdelaage.ovh/mastoGem
go 1.16