update scripts

This commit is contained in:
themohooks 2024-07-04 12:15:08 +03:00
parent 6c90d8e34e
commit 9aaa8d3cb3
5 changed files with 63 additions and 3 deletions

1
.gitignore vendored
View file

@ -3,3 +3,4 @@
.osp
.git
.github
ngallery.yaml

32
.htaccess Normal file
View file

@ -0,0 +1,32 @@
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
AddDefaultCharset UTF-8
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
Options -Indexes
<Files .env>
Order allow,deny
Deny from all
</Files>
<Files .gitignore>
Order allow,deny
Deny from all
</Files>
<Files .yml>
Order allow,deny
Deny from all
</Files>
<Files .yaml>
Order allow,deny
Deny from all
</Files>
RedirectMatch 404 /\.git
RedirectMatch 404 /\.yml
RedirectMatch 404 /\.yaml
RedirectMatch 404 /\..*$

View file

@ -1,10 +1,7 @@
<?php
// Prevent worker script termination when a client connection is interrupted
ignore_user_abort(true);
echo 'gfdfgdfgdgfdgf';
require __DIR__.'/vendor/autoload.php';
// Include the App class definition
use App\Core\{Routes, Page};
use App\Services\DB;
use Symfony\Component\Yaml\Yaml;

29
ngallery-example.yaml Normal file
View file

@ -0,0 +1,29 @@
ngallery:
root:
maintenance: false
debug: true
botkey: ''
db:
name: ''
host: ''
login: ''
password: ''
websockets:
messages: ""
storage:
type: 's3'
s3:
domains:
public: ''
gateway: ''
credentials:
key: ''
secret: ''
region: 'auto'
version: 'latest'
bucket: ''
img:
proxy: true
percent: 50

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 6.4 KiB