-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.php
More file actions
executable file
·39 lines (35 loc) · 1.14 KB
/
config.php
File metadata and controls
executable file
·39 lines (35 loc) · 1.14 KB
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
<?php
global $config;
$config = [];
// Route (path) of program installation
$config['path'] = '/';
// ID Length
$config['length'] = 1;
// Customize the prefix url (if you don't want to get it automatically)
$config['url'] = 'https://shlink.dns.com';
// Website title and displayed one line near the logo
$config['title'] = 'shlink';
// Website Description
$config['description'] = 'Simple and fast URL shortener 🤖 This tool allows to shorten long links from any websites 🥷';
// Information at the bottom of the website
$config['hoster'] = 'This site is provided by <a href="https://github.com/kraloveckey">kraloveckey</a>';
// Link expiration date in days
$config['expiry'] = 30;
// mysql address
$config['mysql_host'] = "127.0.0.1";
// mysql database
$config['mysql_db'] = "shlink-db";
// mysql username
$config['mysql_user'] = "shlink-user";
// mysql password
$config['mysql_passwd'] = "shlink-password";
/*
CREATE TABLE `urls` (
`uid` mediumint(8) unsigned NOT NULL auto_increment,
`id` VARCHAR(10),
`data` text,
`time` datetime,
PRIMARY KEY (`uid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
*/
?>