lstu.conf.template 2.3 KB
Newer Older
Luc Didry's avatar
Luc Didry committed
1
# vim:set sw=4 ts=4 sts=4 ft=perl expandtab:
Luc Didry's avatar
Luc Didry committed
2
{
Luc Didry's avatar
Luc Didry committed
3 4 5 6
    ####################
    # Hypnotoad settings
    ####################
    # see http://mojolicio.us/perldoc/Mojo/Server/Hypnotoad for a full list of settings
7
    hypnotoad => {
Luc Didry's avatar
Luc Didry committed
8
        # array of IP addresses and ports you want to listen to
9
        listen => ['http://127.0.0.1:8080'],
Luc Didry's avatar
Luc Didry committed
10 11 12
        # if you use Lstu behind a reverse proxy like Nginx, you want to set proxy to 1
        # if you use Lstu directly, let it commented
        #proxy  => 1,
13
    },
Luc Didry's avatar
Luc Didry committed
14 15 16 17 18 19 20 21 22 23 24 25 26

    # put a way to contact you here and uncomment it
    # MANDATORY
    #contact       => 'admin[at]example.com',

    # array of random strings used to encrypt cookies
    # optional, default is ['fdjsofjoihrei'], PLEASE, CHANGE IT
    #secret        => ['fdjsofjoihrei'],

    # secret passphrase to access some admin features
    # optional, but you won't have access to admin /stats if not set
    #adminpwd      => 's3cr3T',

Luc Didry's avatar
Luc Didry committed
27 28 29 30
    # choose a theme. See the available themes in `themes` directory
    # optional, default is 'default'
    #theme         => 'default',

Luc Didry's avatar
Luc Didry committed
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
    # number of URLs to be displayed per page in /stats
    # optional, default is 10
    #page_offset   => 10,

    # length of the random URL
    # optional, default is 8
    #length            => 8,

    # how many URLs will be provisioned in a batch ?
    # optional, default is 5
    #provis_step       => 5,

    # max number of URLs to be provisioned
    # optional, default is 100
    #provisioning      => 100,

    # URL sub-directory in which you want Lstu to be accessible
    # example: you want to have Lstu under https://example.org/lstu/
Luc Didry's avatar
Luc Didry committed
49
    # => set prefix to '/lstu' or to '/lstu/', it doesn't matter
Luc Didry's avatar
Luc Didry committed
50 51 52 53 54 55 56 57 58 59 60
    # optional, defaut is /
    #prefix        => '/',

    # array of authorized domains for API calls.
    # if you want to authorize everyone to use the API: ['*']
    # optional, no domains allowed by default
    #allowed_domains   => ['http://1.example.com', 'http://2.example.com'],

    # if set, the shortened URLs will use this domain
    # optional
    #fixed_domain => 'example.org',
Luc Didry's avatar
Luc Didry committed
61 62 63 64 65 66

    # define a path to the SQLite database
    # you can define it relative to lstu directory or set an absolute path
    # remember that it has to be in a directory writable by Lstu user
    # optional, default is lstu.db
    #db_path           => 'lstu.db',
Luc Didry's avatar
Luc Didry committed
67
};