feat: initial commit
This commit is contained in:
commit
e214116e40
253 changed files with 17406 additions and 0 deletions
53
scripts/templates/apache_vhost.conf.template
Normal file
53
scripts/templates/apache_vhost.conf.template
Normal file
|
@ -0,0 +1,53 @@
|
|||
<VirtualHost *:80>
|
||||
ServerAdmin hi@coryd.dev
|
||||
ServerName coryd.dev
|
||||
Redirect permanent / https://www.coryd.dev/
|
||||
</VirtualHost>
|
||||
|
||||
<VirtualHost *:443>
|
||||
ServerAdmin hi@coryd.dev
|
||||
ServerName coryd.dev
|
||||
Redirect permanent / https://www.coryd.dev/
|
||||
|
||||
SSLEngine on
|
||||
SSLCertificateFile /etc/letsencrypt/live/coryd.dev/fullchain.pem
|
||||
SSLCertificateKeyFile /etc/letsencrypt/live/coryd.dev/privkey.pem
|
||||
</VirtualHost>
|
||||
|
||||
<VirtualHost *:443>
|
||||
ServerAdmin hi@coryd.dev
|
||||
ServerName www.coryd.dev
|
||||
DocumentRoot /var/www/coryd.dev
|
||||
|
||||
SSLEngine on
|
||||
SSLCertificateFile /etc/letsencrypt/live/coryd.dev/fullchain.pem
|
||||
SSLCertificateKeyFile /etc/letsencrypt/live/coryd.dev/privkey.pem
|
||||
|
||||
SetEnv POSTGREST_URL "{{POSTGREST_URL}}"
|
||||
SetEnv POSTGREST_API_KEY "{{POSTGREST_API_KEY}}"
|
||||
SetEnv BASE_URL "https://www.coryd.dev"
|
||||
SetEnv FORWARDEMAIL_API_KEY "{{FORWARDEMAIL_API_KEY}}"
|
||||
SetEnv MASTODON_ACCESS_TOKEN "{{MASTODON_ACCESS_TOKEN}}"
|
||||
SetEnv MASTODON_SYNDICATION_TOKEN "{{MASTODON_SYNDICATION_TOKEN}}"
|
||||
SetEnv BOOK_IMPORT_TOKEN "{{BOOK_IMPORT_TOKEN}}"
|
||||
SetEnv WATCHING_IMPORT_TOKEN "{{WATCHING_IMPORT_TOKEN}}"
|
||||
SetEnv TMDB_API_KEY "{{TMDB_API_KEY}}"
|
||||
SetEnv SEASONS_IMPORT_TOKEN "{{SEASONS_IMPORT_TOKEN}}"
|
||||
SetEnv NAVIDROME_SCROBBLE_TOKEN "{{NAVIDROME_SCROBBLE_TOKEN}}"
|
||||
SetEnv NAVIDROME_API_URL "{{NAVIDROME_API_URL}}"
|
||||
SetEnv NAVIDROME_API_TOKEN "{{NAVIDROME_API_TOKEN}}"
|
||||
SetEnv ARTIST_IMPORT_TOKEN "{{ARTIST_IMPORT_TOKEN}}"
|
||||
|
||||
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
|
||||
RequestHeader set Authorization "%{HTTP_AUTHORIZATION}e" env=HTTP_AUTHORIZATION
|
||||
|
||||
<Directory /var/www/coryd.dev/>
|
||||
Options Indexes FollowSymLinks MultiViews
|
||||
AllowOverride All
|
||||
Require all granted
|
||||
</Directory>
|
||||
|
||||
<FilesMatch \.php$>
|
||||
SetHandler "proxy:unix:/var/run/php/php8.3-fpm.sock|fcgi://localhost/"
|
||||
</FilesMatch>
|
||||
</VirtualHost>
|
1
scripts/templates/root_crontab.template
Normal file
1
scripts/templates/root_crontab.template
Normal file
|
@ -0,0 +1 @@
|
|||
0 2 * * * certbot renew --quiet && systemctl reload apache2
|
4
scripts/templates/www_crontab.template
Normal file
4
scripts/templates/www_crontab.template
Normal file
|
@ -0,0 +1,4 @@
|
|||
*/15 * * * * curl -X POST -H "Authorization: Bearer {{MASTODON_ACCESS_TOKEN}}" -H "Content-Type: application/json" https://www.coryd.dev/api/mastodon.php
|
||||
0 * * * * curl -X POST "https://apps.coryd.dev/api/v1/deploy?uuid=q004wcg840s0s88g8cwo8wkg&force=true" -H "Authorization: Bearer {{COOLIFY_REBUILD_TOKEN}}" -H "Content-Type: application/json" >/dev/null 2>&1
|
||||
*/3 * * * * curl -X POST -H "Authorization: Bearer {{NAVIDROME_SCROBBLE_TOKEN}}" https://www.coryd.dev/api/scrobble.php
|
||||
0 0 * * * curl -X POST -H "Authorization: Bearer {{SEASONS_IMPORT_TOKEN}}" https://www.coryd.dev/api/seasons-import.php
|
Loading…
Add table
Add a link
Reference in a new issue