-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTinyDisk.config
53 lines (40 loc) · 1.18 KB
/
TinyDisk.config
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
48
49
50
51
52
#
# Config for TinyDisk
#
# You will have to specify
#
###### --- Creation code
#What hostname is used to connect to the writing server?
#WriteServer: localhost
#for tinyurl.com
WriteServer: tinyurl.com
#What port
WritePort: 80
#for tinyurl.com
#WritePort: 80
#path the filename to POST to to create a new hash
#same for both NanoURL and TinyURL
WriteURL: /create.php
# sig of a successful creation
#same for both TinyURL and NanoURL
CreateSig: "<h1>TinyURL was created!</h1>"
#string that prefixes the hash returned when a hash is created
#HashSig: "<input type=hidden name=tinyurl value="http://localhost/redirect.php?num="
#hash for tinyurl.com
HashSig: "<input type=hidden name=tinyurl value="http://tinyurl.com/"
###### --- Reading code
#What hostname is used to connect to the reading server?
#ReadServer: localhost
#for tinyurl.com
ReadServer: forwarding.tinyurl.com
#What port
ReadPort: 80
#for tinyurl.com
#ReadPort: 80
#path and the filename to read a hash from
#this should return an HTTP 302 redirect with the contents of the hash
#same for TinyURL and NanoURL
ReadURL: /redirect.php?num=
#Max size of a file that can be uploaded, in Kilobytes
#20 megs is te default
MaxSize: 20097152