Skip to content
This repository was archived by the owner on Oct 10, 2025. It is now read-only.

Commit 51a986c

Browse files
committed
chore: [#28] remove obsolete container configuration directory
- Remove application/share/container/default/config/crontab.conf - Update documentation references to reflect template-based architecture - Modernize configuration management by using infrastructure/config/templates/ - Clean up legacy container configuration patterns The cron configuration is now managed through the template system in infrastructure/config/templates/crontab/ as part of the deployment process.
1 parent 70b8286 commit 51a986c

File tree

4 files changed

+9
-15
lines changed

4 files changed

+9
-15
lines changed

application/README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,6 @@ application/
2424
│ │ ├── time-running.sh
2525
│ │ ├── tracker-db-backup.sh
2626
│ │ └── tracker-filtered-logs.sh
27-
│ ├── container/default/config/ # Container configurations
28-
│ │ ├── crontab.conf
29-
│ │ ├── nginx.conf
30-
│ │ ├── prometheus.yml
31-
│ │ └── tracker.prod.container.sqlite3.toml
3227
│ ├── dev/home/ # Development configurations
3328
│ └── grafana/dashboards/ # Grafana dashboard configurations
3429
│ ├── metrics.json

application/docs/backups.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@ cd /home/torrust/github/torrust/torrust-tracker-demo/
1313
sudo crontab -e
1414
```
1515

16-
You should see the
17-
[crontab.conf](../share/container/default/config/crontab.conf) configuration
18-
file.
16+
You should see the MySQL backup cron job configured from the template system in
17+
`infrastructure/config/templates/crontab/mysql-backup.cron`.
1918

2019
## Check Backups
2120

application/share/container/default/config/crontab.conf

Lines changed: 0 additions & 2 deletions
This file was deleted.

docs/guides/grafana-subdomain-setup.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ grep torrust-demo.dev /etc/hosts
4646

4747
The nginx proxy configuration is generated from templates during deployment:
4848

49-
- **Template**: `application/share/container/proxy/nginx.conf.j2` (if exists)
49+
- **Template**: `infrastructure/config/templates/proxy/` (template-based configuration)
5050
- **Generated Config**: `/var/lib/torrust/proxy/nginx.conf` (on server)
5151
- **SSL Certificates**: `/var/lib/torrust/proxy/certs/` and `/var/lib/torrust/proxy/private/`
5252

@@ -130,13 +130,15 @@ curl -k -I https://grafana.torrust-demo.dev
130130

131131
1. **Create nginx configuration template:**
132132

133-
Create `application/share/container/proxy/nginx.conf.tpl` with complete configuration including Grafana subdomain support.
133+
Create nginx configuration templates in `infrastructure/config/templates/proxy/`
134+
with complete configuration including Grafana subdomain support.
134135

135-
2. **Update deployment script:**
136+
1. **Update deployment script:**
136137

137-
Modify `infrastructure/scripts/deploy-app.sh` to process the nginx template and generate configuration with both tracker and Grafana subdomains.
138+
Modify `infrastructure/scripts/deploy-app.sh` to process the nginx template and
139+
generate configuration with both tracker and Grafana subdomains.
138140

139-
3. **Add environment variables:**
141+
1. **Add environment variables:**
140142

141143
```bash
142144
# In your environment configuration

0 commit comments

Comments
 (0)