diff options
author | Raphael <raphaelkabo@hey.com> | 2023-05-12 17:03:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-12 17:03:13 +0100 |
commit | 67cf89fd0cfdf56c7e6d6d9bdf93d95d679ce2a1 (patch) | |
tree | c66bdf874a210997cd1d84942101773ba0175b20 /src/config | |
parent | a75aad783c117aaef2ec19b6b434be0f0d7e57de (diff) | |
parent | 50688f573054f60aa7594672615f11713173c147 (diff) |
Merge pull request #95 from lowercasename/typescript
Migrate to TypeScript and PNPM
Diffstat (limited to 'src/config')
-rw-r--r-- | src/config/api-example.js | 8 | ||||
-rw-r--r-- | src/config/database-docker.js | 3 | ||||
-rw-r--r-- | src/config/database-example.js | 3 | ||||
-rw-r--r-- | src/config/domain-example.js | 13 | ||||
-rw-r--r-- | src/config/gathio.service | 13 |
5 files changed, 40 insertions, 0 deletions
diff --git a/src/config/api-example.js b/src/config/api-example.js new file mode 100644 index 0000000..493b9d6 --- /dev/null +++ b/src/config/api-example.js @@ -0,0 +1,8 @@ +// Which of these fields are used depends on the 'mailService' config entry in config/domain.js +module.exports = { + sendgrid: "", // If using SendGrid, the Sendgrid API key goes here + smtpServer: "", // If using Nodemailer, your SMTP server hostname goes here + smtpPort: "", // If using Nodemailer, your SMTP server port goes here + smtpUsername: "", // If using Nodemailer, your SMTP server username goes here + smtpPassword: "", // If using Nodemailer, your SMTP password goes here +}; diff --git a/src/config/database-docker.js b/src/config/database-docker.js new file mode 100644 index 0000000..96c987d --- /dev/null +++ b/src/config/database-docker.js @@ -0,0 +1,3 @@ +module.exports = { + url: "mongodb://mongo:27017/gathio", // For dockerised MongoDB connection +}; diff --git a/src/config/database-example.js b/src/config/database-example.js new file mode 100644 index 0000000..ca7bdcc --- /dev/null +++ b/src/config/database-example.js @@ -0,0 +1,3 @@ +module.exports = { + url: "mongodb://localhost:27017/gathio", // For local MongoDB connection +}; diff --git a/src/config/domain-example.js b/src/config/domain-example.js new file mode 100644 index 0000000..abac094 --- /dev/null +++ b/src/config/domain-example.js @@ -0,0 +1,13 @@ +module.exports = { + // Your domain goes here. If there is a port it should be 'domain:port', but otherwise just 'domain' + domain: "localhost:3000", + port: "3000", + email: "contact@example.com", + mailService: "nodemailer", // Which mail service to use to send emails to attendees. Options are 'nodemailer' or 'sendgrid'. Configure settings for the mail service in config/api.js.z + sitename: "gathio", + isFederated: true, + // If left blank, this defaults to https://yourdomain.com/images/gathio-email-logo.gif. Set a full URL here to change it to your own logo (or just change the file itself) + logo_url: "", + // Show a Ko-Fi box to donate money to Raphael Kabo (Gathio's creator) on the front page + showKofi: false, +}; diff --git a/src/config/gathio.service b/src/config/gathio.service new file mode 100644 index 0000000..447d44f --- /dev/null +++ b/src/config/gathio.service @@ -0,0 +1,13 @@ +[Unit] +Description=GathIO +After=network.target + +[Service] +Type=simple +User=gathio +WorkingDirectory=/srv/gathio +ExecStart=/usr/bin/npm start +Restart=on-failure + +[Install] +WantedBy=multi-user.target |