Merge pull request #7 from bjageman/random-changes

Random changes
This commit is contained in:
Braden Jageman 2024-05-24 14:21:44 -04:00 committed by GitHub
commit fb07bb4688
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
17 changed files with 188 additions and 63 deletions

View File

@ -1,21 +1,4 @@
services: services:
freshrss:
image: lscr.io/linuxserver/freshrss:latest
container_name: freshrss
environment:
- PUID=${UID}
- PGID=${GID}
- TZ=${TZ}
- VIRTUAL_HOST=rss.${DOMAIN}
- LETSENCRYPT_HOST=rss.${DOMAIN}
- LETSENCRYPT_EMAIL=${EMAIL}
volumes:
- ${CONFIG_LOCATION}/freshrss:/config
expose:
- "8085"
ports:
- 8085:80
restart: unless-stopped
radarr: radarr:
image: lscr.io/linuxserver/radarr:latest image: lscr.io/linuxserver/radarr:latest
container_name: radarr container_name: radarr

@ -0,0 +1 @@
Subproject commit bc4648940633919d5a8b7d6713a074d2a197b0a3

1
botc/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
backup/*

View File

@ -4,19 +4,21 @@ services:
restart: always restart: always
environment: environment:
MYSQL_DATABASE: clocktower MYSQL_DATABASE: clocktower
MYSQL_USER: root MYSQL_USER: wordpress
MYSQL_PASSWORD: ${DBPASS} MYSQL_PASSWORD: ${DBPASS}
MYSQL_RANDOM_ROOT_PASSWORD: '1' MYSQL_RANDOM_ROOT_PASSWORD: '1'
volumes: volumes:
- db:/var/lib/mysql - db:/var/lib/mysql
wordpress-botc: wordpress:
depends_on: depends_on:
- db - db
image: wordpress image: wordpress
restart: always restart: always
environment: environment:
WORDPRESS_DB_HOST: db # PUID: ${UID}
WORDPRESS_DB_USER: root # PGID: ${GID}
WORDPRESS_DB_HOST: botc-db-1
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: ${DBPASS} WORDPRESS_DB_PASSWORD: ${DBPASS}
WORDPRESS_DB_NAME: clocktower WORDPRESS_DB_NAME: clocktower
VIRTUAL_HOST: "botc.${DOMAIN}, *.phillybotc.com, phillybotc.com" VIRTUAL_HOST: "botc.${DOMAIN}, *.phillybotc.com, phillybotc.com"
@ -24,9 +26,10 @@ services:
LETSENCRYPT_EMAIL: ${EMAIL} LETSENCRYPT_EMAIL: ${EMAIL}
LETSENCRYPT_TEST: true LETSENCRYPT_TEST: true
volumes: volumes:
- wordpress-botc:/var/www/html - wordpress:/var/www/html
- ./backup:/var/www/html/wp-content/updraft
volumes: volumes:
wordpress-botc: wordpress:
db: db:
networks: networks:
default: default:

7
minecraft/.env.example Normal file
View File

@ -0,0 +1,7 @@
DOMAIN=example.com
UID=1000
GID=1000
TZ=Etc/UTC
CONFIG_LOCATION=./config
DATA_LOCATION=./data
EMAIL=example@mail.com

1
minecraft/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
crafty/

View File

@ -0,0 +1,28 @@
services:
crafty:
container_name: crafty_container
image: registry.gitlab.com/crafty-controller/crafty-4:latest
restart: always
environment:
- TZ=${TZ}
- VIRTUAL_HOST=minecraft.${DOMAIN}
- VIRTUAL_PORT=8443
- LETSENCRYPT_HOST=minecraft.${DOMAIN}
- LETSENCRYPT_EMAIL=${EMAIL}
- LETSENCRYPT_TEST=true
ports:
- "8443:8443" # HTTPS
- "8123:8123" # DYNMAP
- "19132:19132/udp" # BEDROCK
- "25500-25600:25500-25600" # MC SERV PORT RANGE
volumes:
- ./crafty/backups:/crafty/backups
- ./crafty/logs:/crafty/logs
- ./crafty/servers:/crafty/servers
- ./crafty/config:/crafty/app/config
- ./crafty/import:/crafty/import
- ${DATA_LOCATION}:/external
networks:
default:
name: nginx-proxy
external: true

View File

@ -1,49 +1,35 @@
services: services:
db: freshrss:
image: postgres:15-alpine image: freshrss/freshrss:edge
restart: unless-stopped container_name: freshrss
env_file:
- .env
environment:
- POSTGRES_USER=${TTRSS_DB_USER}
- POSTGRES_PASSWORD=${TTRSS_DB_PASS}
- POSTGRES_DB=${TTRSS_DB_NAME}
volumes:
- db:/var/lib/postgresql/data
app:
image: cthulhoo/ttrss-fpm-pgsql-static:latest
restart: unless-stopped
env_file:
- .env
environment: environment:
- PUID=${UID}
- PGID=${GID}
- TZ=${TZ}
- VIRTUAL_HOST=rss.${DOMAIN} - VIRTUAL_HOST=rss.${DOMAIN}
# - LETSENCRYPT_HOST=rss.${DOMAIN} - LETSENCRYPT_HOST=rss.${DOMAIN}
# - LETSENCRYPT_EMAIL=${EMAIL} - LETSENCRYPT_EMAIL=${EMAIL}
# - LETSENCRYPT_TEST=true volumes:
ports: - ${CONFIG_LOCATION}/freshrss:/config
- 8280:8280 - ./extensions:/var/www/FreshRSS/extensions
expose: expose:
- 8280 - "8085"
volumes: ports:
- app:/var/www/html - 8085:80
- ./config.d:/opt/tt-rss/config.d:ro
depends_on:
- db
updater:
image: cthulhoo/ttrss-fpm-pgsql-static:latest
restart: unless-stopped restart: unless-stopped
env_file:
- .env
volumes:
- app:/var/www/html
- ./config.d:/opt/tt-rss/config.d:ro
depends_on:
- app
command: /opt/tt-rss/updater.sh
volumes:
db: db:
app: image: lscr.io/linuxserver/mariadb:latest
backups: environment:
- PUID=${UID}
- PGID=${GID}
- TZ=${TZ}
- MYSQL_ROOT_PASSWORD=ROOT_ACCESS_PASSWORD
- MYSQL_DATABASE=freshrss #optional
- MYSQL_USER=freshrss #optional
- MYSQL_PASSWORD=freshrss #optional
volumes:
- ${CONFIG_LOCATION}/mariadb:/config
restart: unless-stopped
networks: networks:
default: default:
name: nginx-proxy name: nginx-proxy

@ -0,0 +1 @@
Subproject commit bc4648940633919d5a8b7d6713a074d2a197b0a3

View File

@ -0,0 +1,17 @@
<form action="<?php echo _url('extension', 'configure', 'e', urlencode($this->getName())); ?>" method="post">
<input type="hidden" name="_csrf" value="<?php echo FreshRSS_Auth::csrfToken(); ?>" />
<div class="form-group">
<label for="refresh-rate" class="group-name"><?= _t('ext.auto_refresh.refresh_rate'); ?></label>
<div class="group-controls">
<input type="number" name="refresh-rate" id="refresh-rate" min="1" value="<?= $this->getRefreshRate() ?>">
</div>
</div>
<div class="form-group form-actions">
<div class="group-controls">
<button type="submit" class="btn btn-important"><?php echo _t('gen.action.submit'); ?></button>
<button type="reset" class="btn"><?php echo _t('gen.action.cancel'); ?></button>
</div>
</div>
</form>

View File

@ -0,0 +1,34 @@
<?php
class AutoRefreshExtension extends Minz_Extension {
const DEFAULT_REFRESH_RATE = 1;
public function init() {
Minz_View::appendScript($this->getFileUrl('script.js', 'js'),'','','');
$this->registerHook('js_vars', [$this, 'addVariables']);
}
public function addVariables($vars) {
$vars[$this->getName()]['configuration'] = [
'refresh-rate' => $this->getRefreshRate(),
];
return $vars;
}
public function handleConfigureAction() {
$this->registerTranslates();
if (Minz_Request::isPost()) {
$configuration = [
'refresh-rate' => Minz_Request::param('refresh-rate', self::DEFAULT_REFRESH_RATE),
];
$this->setUserConfiguration($configuration);
}
}
public function getRefreshRate() {
return $this->getUserConfigurationValue('refresh-rate', static::DEFAULT_REFRESH_RATE);
}
}

View File

@ -0,0 +1,7 @@
<?php
return [
'auto_refresh' => [
'refresh_rate' => 'Seiten-Aktualisierung jede x Minuten',
],
];

View File

@ -0,0 +1,7 @@
<?php
return [
'auto_refresh' => [
'refresh_rate' => 'Refresh rate in minutes',
],
];

View File

@ -0,0 +1,7 @@
<?php
return [
'auto_refresh' => [
'refresh_rate' => 'Fréquence de rafraîchissement en minutes',
],
];

View File

@ -0,0 +1,8 @@
{
"name": "Auto Refresh",
"author": "Essa AlAwadi",
"description": "Automatically refreshes the RSS feed when there is no activity",
"version": 1.3,
"entrypoint": "AutoRefresh",
"type": "user"
}

View File

@ -0,0 +1,34 @@
'use strict';
const getNewTime = () => {
return new Date().getTime();
};
const resetTimer = () => {
time = getNewTime();
};
var time = getNewTime();
const initTimer = () => {
if ('undefined' === typeof context) {
console.log('wait');
return setTimeout(initTimer, 50);
}
if (document.getElementById('nav_menu_views')) {
const refreshRate = context.extensions["Auto Refresh"].configuration["refresh-rate"];
setInterval(() => {
if (getNewTime() - time >= refreshRate * 60000) {
window.location.reload();
}
}, refreshRate * 30000);
document.addEventListener("touchmove", resetTimer);
document.addEventListener("mousemove", resetTimer);
document.addEventListener("keypress", resetTimer);
}
}
window.onload = () => {
initTimer();
}