浏览代码

config doc

master
Robin Thoni 10 年前
父节点
当前提交
923248dd59
共有 1 个文件被更改,包括 29 次插入0 次删除
  1. 29
    0
      misc/config.php.sample

+ 29
- 0
misc/config.php.sample 查看文件

@@ -1,9 +1,38 @@
1 1
 <?php
2
+/*
3
+The MYSQL host (usally localhost).
4
+*/
2 5
 $database_host = "localhost";
6
+/*
7
+The MYSQL host port (usally 3306).
8
+*/
3 9
 $database_port = 3306;
10
+/*
11
+The database name to use (eg: vdm_storage).
12
+*/
4 13
 $database_name = "";
14
+/*
15
+The database user to connect as.
16
+Only needs SELECT and INSERT privilege on database.
17
+No global privilege are required.
18
+*/
5 19
 $database_user = "";
20
+/*
21
+The above user password.
22
+*/
6 23
 $database_pass = "";
24
+/*
25
+The folder to store uploaded images (eg: ./medias/).
26
+The variable MUST ends with a trailling slash (/).
27
+The web server only need write permission.
28
+*/
7 29
 $media_path = "";
30
+/*
31
+The public URL to access uploaded images (eg: /medias/).
32
+The variable MUST ends with a trailling slash (/).
33
+Note that it can also be on a different host:
34
+media_path = /var/images.api.vdm/ (can be a local folder or a mounted one)
35
+media_url = http://images.api.vdm.tld/
36
+*/
8 37
 $media_url = "";
9 38
 ?>

正在加载...
取消
保存