bunch of changes
This commit is contained in:
parent
8ec54de897
commit
21dd9bfb67
|
@ -1,21 +1,4 @@
|
|||
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:
|
||||
image: lscr.io/linuxserver/radarr:latest
|
||||
container_name: radarr
|
||||
|
|
1
arr/extensions/freshrss-comicsinfeed
Submodule
1
arr/extensions/freshrss-comicsinfeed
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit bc4648940633919d5a8b7d6713a074d2a197b0a3
|
7
minecraft/.env.example
Normal file
7
minecraft/.env.example
Normal 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
1
minecraft/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
crafty/
|
28
minecraft/docker-compose.yml
Normal file
28
minecraft/docker-compose.yml
Normal 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
|
|
@ -1,49 +1,35 @@
|
|||
services:
|
||||
db:
|
||||
image: postgres:15-alpine
|
||||
restart: unless-stopped
|
||||
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
|
||||
freshrss:
|
||||
image: freshrss/freshrss:edge
|
||||
container_name: freshrss
|
||||
environment:
|
||||
- PUID=${UID}
|
||||
- PGID=${GID}
|
||||
- TZ=${TZ}
|
||||
- VIRTUAL_HOST=rss.${DOMAIN}
|
||||
# - LETSENCRYPT_HOST=rss.${DOMAIN}
|
||||
# - LETSENCRYPT_EMAIL=${EMAIL}
|
||||
# - LETSENCRYPT_TEST=true
|
||||
ports:
|
||||
- 8280:8280
|
||||
- LETSENCRYPT_HOST=rss.${DOMAIN}
|
||||
- LETSENCRYPT_EMAIL=${EMAIL}
|
||||
volumes:
|
||||
- ${CONFIG_LOCATION}/freshrss:/config
|
||||
- ./extensions:/var/www/FreshRSS/extensions
|
||||
expose:
|
||||
- 8280
|
||||
volumes:
|
||||
- app:/var/www/html
|
||||
- ./config.d:/opt/tt-rss/config.d:ro
|
||||
depends_on:
|
||||
- db
|
||||
updater:
|
||||
image: cthulhoo/ttrss-fpm-pgsql-static:latest
|
||||
- "8085"
|
||||
ports:
|
||||
- 8085:80
|
||||
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:
|
||||
app:
|
||||
backups:
|
||||
image: lscr.io/linuxserver/mariadb:latest
|
||||
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:
|
||||
default:
|
||||
name: nginx-proxy
|
||||
|
|
1
rss-reader/extensions/freshrss-comicsinfeed
Submodule
1
rss-reader/extensions/freshrss-comicsinfeed
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit bc4648940633919d5a8b7d6713a074d2a197b0a3
|
17
rss-reader/extensions/xExtension-AutoRefresh/configure.phtml
Normal file
17
rss-reader/extensions/xExtension-AutoRefresh/configure.phtml
Normal 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>
|
34
rss-reader/extensions/xExtension-AutoRefresh/extension.php
Normal file
34
rss-reader/extensions/xExtension-AutoRefresh/extension.php
Normal 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);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
<?php
|
||||
|
||||
return [
|
||||
'auto_refresh' => [
|
||||
'refresh_rate' => 'Seiten-Aktualisierung jede x Minuten',
|
||||
],
|
||||
];
|
|
@ -0,0 +1,7 @@
|
|||
<?php
|
||||
|
||||
return [
|
||||
'auto_refresh' => [
|
||||
'refresh_rate' => 'Refresh rate in minutes',
|
||||
],
|
||||
];
|
|
@ -0,0 +1,7 @@
|
|||
<?php
|
||||
|
||||
return [
|
||||
'auto_refresh' => [
|
||||
'refresh_rate' => 'Fréquence de rafraîchissement en minutes',
|
||||
],
|
||||
];
|
|
@ -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"
|
||||
}
|
|
@ -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();
|
||||
}
|
Loading…
Reference in New Issue
Block a user