-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.rb.example
49 lines (41 loc) · 1.64 KB
/
config.rb.example
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
# frozen_string_literal: true
# -*- mode: ruby -*-
#
# WAP - give your guests WiFi Access, Printed
# Copyright (C) 2021 Georg Gadinger <[email protected]>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
# This is an example configuration for WAP
module Config
PRINTER_CONNECT_USING = :usb # or: :tcp
PRINTER_HOST = '192.168.1.100'
PRINTER_PORT = 9100
PRINTER_USB = '/dev/usb/lp1' # needs to be read- and writable by your user
GUEST_USER_PREFIX = "guest-"
GUEST_USER_VALIDITY = 86400 # 1 day in second
CLEANUP_INTERVAL = 900 # 15 minutes
HEADER = 'WiFi @ Home'
HEADER_IMAGE = File.expand_path('./data/fox.png', __dir__)
# set this to nil to hide the CA message
ROOT_CA_URL = 'https://somewhere.fox/rootca.crt'
SSID = 'It Hz when IP x--DDDD'
FORTUNE_COMMAND = lambda do
`fortune -s computers | cowsay -f /home/foxy/.local/share/cows/fox.cow`
end
UNIFI_URL = '192.168.1.254:8443'
UNIFI_SITE = 'default'
# Please create a different user to use with this thing.
UNIFI_USERNAME = 'SysAdmin'
UNIFI_PASSWORD = 'testtest'
end