Skip to content

New example config for a dropplet #4

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Dec 14, 2023

Conversation

josecelano
Copy link
Member

Example production compose configuration to run Torrust on a Digital Ocean droplet with:

  • SQLite.
  • Let's Encrypt (HTTPs). Auto-renewal of certificates.
  • No firewall rules. Digital Ocean Firewall service could be enabled.

@josecelano josecelano force-pushed the issue-2-example-droplet branch 9 times, most recently from 25fee4f to 7cb8434 Compare December 11, 2023 17:45
@josecelano josecelano linked an issue Dec 14, 2023 that may be closed by this pull request
@josecelano josecelano force-pushed the issue-2-example-droplet branch 2 times, most recently from 17b8f7b to e1c21a3 Compare December 14, 2023 10:39
@josecelano josecelano force-pushed the issue-2-example-droplet branch from e1c21a3 to c989795 Compare December 14, 2023 12:01
@josecelano josecelano marked this pull request as ready for review December 14, 2023 12:32
@josecelano josecelano requested a review from da2ce7 December 14, 2023 12:32
@josecelano
Copy link
Member Author

ACK c989795

@josecelano josecelano merged commit 164827f into torrust:main Dec 14, 2023
@@ -0,0 +1,7 @@
#!/bin/bash

TORRUST_INDEX_CONFIG_PATH=$(cat ./storage/index/etc/index.toml) \
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This the _PATH variable, but we place the config directly on it here...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch @da2ce7! In fact, it's working because that's the old name. New names are:

Tracker:

  • TORRUST_TRACKER_CONFIG
  • TORRUST_TRACKER_PATH_CONFIG

Index:

  • TORRUST_INDEX_CONFIG
  • TORRUST_INDEX_PATH_CONFIG

I replaced TORRUST_INDEX_CONFIG_PATH with TORRUST_INDEX_PATH_CONFIG to follow your latest changes.

In this case those variables are not being used in the compose.yaml file. I'm using the default location for the config files:

  • TORRUST_TRACKER_PATH_CONFIG=/etc/torrust/tracker/tracker.toml
  • TORRUST_INDEX_PATH_CONFIG=/etc/torrust/index/index.toml

Config env vars are set at runtime:

We have to remove TORRUST_INDEX_CONFIG_PATH and TORRUST_TRACKER_CONFIG_PATH from all bash scripts.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add configuration to run the Index on a Digital Ocean droplet
2 participants