-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproduction.template
41 lines (34 loc) · 1.13 KB
/
production.template
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
<?php
// This is the needed configuration for using v0.lt outside of tests
// Duplicate this template, fill in your server details, and rename to production.php
// Database
$dbc = mysqli_connect("host", "username", "password", "database");
// App configs
$app = Array(
// this specifies at what URL generated finished short links are prefixed with
"url" => "https://yourdomain.xyz",
// this specifies what URLs or phrases are not permitted
"blacklist-urls" => Array(
'https://localhost',
'http://localhost'
),
// specifies that the HTTP or HTTPS prefix will not be inserted when ommitted
"inject-prefix" => true
)
// Security configs
$security = Array(
// Ban non-https links from being shortened
"enforce-https": true,
// Ban certain links ending with these file extensions from being shortened
"blacklist-extensions": Array(
'exe',
'bin',
'zip'
)
)
// cleanup
$config = Array(
'app' => $app,
'security' => $security
);
?>