-
Notifications
You must be signed in to change notification settings - Fork 189
/
.htaccess
47 lines (43 loc) · 2.26 KB
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
Options -Indexes
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin: *
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine on
RedirectMatch 404 /\.git
# Deny access to log files
RewriteRule ^.*\.log$ - [F,L,NC]
RewriteRule ^(.*)enc_watermarked.key$ view/watermarked.key.php?path=$1 [QSA]
#RedirectMatch 403 ^/folder/.+\.(png|gif|js)$
RewriteRule ^index.php$ view/index.php [NC,L]
#RewriteRule ^$ view/ [NC,L]
RewriteRule ^isAdmin$ view/isAdmin.php [NC,L]
RewriteRule ^watermark$ view/watermark.php [NC,L]
RewriteRule ^videosListToLive view/videosListToLive.php [NC,L]
RewriteRule ^removeStreamer$ view/removeStreamer.php [NC,L]
RewriteRule ^priority$ view/priority.php [NC,L]
RewriteRule ^status$ view/status.php [NC,L]
RewriteRule ^serverStatus$ view/status.php?serverStatus=1 [NC,L]
RewriteRule ^upload$ view/upload.php [NC,L]
RewriteRule ^listFiles.json$ view/listFiles.json.php [NC,L]
RewriteRule ^deleteQueue$ view/deleteQueue.php [NC,L]
RewriteRule ^saveConfig$ view/saveConfig.php [NC,L]
RewriteRule ^youtubeDl.json$ view/youtubeDl.json.php [NC,L]
RewriteRule ^send.json$ view/send.json.php [NC,L]
RewriteRule ^streamers.json$ view/streamers.json.php [NC,L]
RewriteRule ^queue.json$ view/queue.json.php [NC,L]
RewriteRule ^queue$ view/queue.php [NC,L]
RewriteRule ^login$ objects/login.json.php [NC,L]
RewriteRule ^logoff$ objects/logoff.json.php [NC,L]
RewriteRule ^getImage/([A-Za-z0-9=/]+)/([A-Za-z0-9]{3})$ objects/getImage.php?base64Url=$1&format=$2 [NC,L]
RewriteRule ^getImageMP4/([A-Za-z0-9=/]+)/([A-Za-z0-9]{3,4})/([0-9.]+)$ objects/getImageMP4.php?base64Url=$1&format=$2&time=$3 [NC,L]
RewriteRule ^getSpiritsFromVideo/([A-Za-z0-9%=/]+)/([0-9]+)/([0-9]+)/([0-9:]+)? objects/getSpiritsFromVideo.php?base64Url=$1&tileWidth=$2&totalClips=$3&duration=$4 [QSA]
RewriteRule ^getLinkInfo/([A-Za-z0-9=/]+)$ objects/getLinkInfo.json.php?base64Url=$1 [NC,L]
</IfModule>
<Files avideo.log>
Order Allow,Deny
Deny from all
</Files>
#php_value post_max_size 4G
#php_value upload_max_filesize 4G
#php_value memory_limit 512M