mirror of
https://github.com/hoellen/dockerfiles.git
synced 2025-07-01 22:55:39 +00:00
UNMAINTENED
This commit is contained in:
6
unmaintained/freshrss/rootfs/etc/s6.d/cron/run
Normal file
6
unmaintained/freshrss/rootfs/etc/s6.d/cron/run
Normal file
@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
while true; do
|
||||
php -f /freshrss/app/actualize_script.php
|
||||
sleep <CRON_PERIOD>
|
||||
done
|
33
unmaintained/freshrss/rootfs/nginx/sites-enabled/nginx.conf
Normal file
33
unmaintained/freshrss/rootfs/nginx/sites-enabled/nginx.conf
Normal file
@ -0,0 +1,33 @@
|
||||
server {
|
||||
listen 8888;
|
||||
root /freshrss;
|
||||
index index.php index.html;
|
||||
|
||||
location ~* \.(jpg|jpeg|gif|css|png|js|map|woff|woff2|ttf|svg|eot)$ {
|
||||
expires 30d;
|
||||
access_log off;
|
||||
}
|
||||
|
||||
location ~ ^/(data|cfg|tmp) {
|
||||
deny all;
|
||||
}
|
||||
|
||||
location ~* /(.*)\.(?:markdown|md|twig|yaml|yml|ht|htaccess|ini)$ {
|
||||
deny all;
|
||||
}
|
||||
|
||||
location ~ /\. {
|
||||
deny all;
|
||||
}
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php;
|
||||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
fastcgi_index index.php;
|
||||
fastcgi_pass unix:/php/run/php-fpm.sock;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
include /nginx/conf/fastcgi_params;
|
||||
}
|
||||
}
|
8
unmaintained/freshrss/rootfs/usr/local/bin/run.sh
Normal file
8
unmaintained/freshrss/rootfs/usr/local/bin/run.sh
Normal file
@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
sed -i -e "s/<UPLOAD_MAX_SIZE>/$UPLOAD_MAX_SIZE/g" /nginx/conf/nginx.conf /php/etc/php-fpm.conf \
|
||||
-e "s/<MEMORY_LIMIT>/$MEMORY_LIMIT/g" /php/etc/php-fpm.conf \
|
||||
-e "s/<CRON_PERIOD>/$CRON_PERIOD/g" /etc/s6.d/cron/run
|
||||
|
||||
[ ! "$(ls -A /freshrss/data)" ] && cp -R /freshrss/data_tmp/* /freshrss/data/
|
||||
chown -R $UID:$GID /freshrss /nginx /php /tmp /etc/s6.d
|
||||
exec su-exec $UID:$GID /bin/s6-svscan /etc/s6.d
|
Reference in New Issue
Block a user