]> git.somenet.org - root/pub/somesible.git/blob - roles/server/irc-services/files/default/hostserv.conf
roles/server/irc-services/files
[root/pub/somesible.git] / roles / server / irc-services / files / default / hostserv.conf
1 #
2 ################################################
3 ### Managed by someone's ansible provisioner ###
4 ################################################
5 # Part of: https://git.somenet.org/root/pub/somesible.git
6 # 2017-2025 by someone <someone@somenet.org>
7 #
8
9 /*
10  * First, create the service.
11  */
12 service
13 {
14         /*
15          * The name of the HostServ client.
16          * If you change this value, you probably want to change the client directive in the configuration for the hostserv module too.
17          */
18         nick = "HostServ"
19
20         /*
21          * The username of the HostServ client.
22          */
23         user = "services"
24
25         /*
26          * The hostname of the HostServ client.
27          */
28         host = "services.host"
29
30         /*
31          * The realname of the HostServ client.
32          */
33         gecos = "vHost Service"
34
35         /*
36          * The modes this client should use.
37          * Do not modify this unless you know what you are doing.
38          *
39          * These modes are very IRCd specific. If left commented, sane defaults
40          * are used based on what protocol module you have loaded.
41          *
42          * Note that setting this option incorrectly could potentially BREAK some, if
43          * not all, usefulness of the client. We will not support you if this client is
44          * unable to do certain things if this option is enabled.
45          */
46         #modes = "+o"
47
48         /*
49          * An optional comma separated list of channels this service should join. Outside
50          * of log channels this is not very useful, as the service will just idle in the
51          * specified channels, and will not accept any types of commands.
52          *
53          * Prefixes may be given to the channels in the form of mode characters or prefix symbols.
54          */
55         #channels = "@#services,#mychan"
56 }
57
58 /*
59  * Core HostServ module.
60  *
61  * Provides essential functionality for HostServ.
62  */
63 module
64 {
65         name = "hostserv"
66
67         /*
68          * The name of the client that should be HostServ.
69          */
70         client = "HostServ"
71
72         /*
73          * If enabled, vhosts are activated on users immediately when they are set.
74          */
75         activate_on_set = true
76 }
77
78 /*
79  * Core HostServ commands.
80  *
81  * In Anope modules can provide (multiple) commands, each of which has a unique command name. Once these modules
82  * are loaded you can then configure the commands to be added to any client you like with any name you like.
83  *
84  * Additionally, you may provide a permission name that must be in the opertype of users executing the command.
85  *
86  * Sane defaults are provided below that do not need to be edited unless you wish to change the default behavior.
87  */
88
89 /* Give it a help command. */
90 command { service = "HostServ"; name = "HELP"; command = "generic/help"; }
91
92 /*
93  * hs_del
94  *
95  * Provides the commands hostserv/del and hostserv/delall.
96  *
97  * Used for removing users' vHosts.
98  */
99 module { name = "hs_del" }
100 command { service = "HostServ"; name = "DEL"; command = "hostserv/del"; permission = "hostserv/del"; }
101 command { service = "HostServ"; name = "DELALL"; command = "hostserv/delall"; permission = "hostserv/del"; }
102
103 /*
104  * hs_group
105  *
106  * Provides the command hostserv/group.
107  *
108  * Used for grouping one vHost to many nicks.
109  */
110 module
111 {
112         name = "hs_group"
113
114         /*
115          * Upon nickserv/group, this option syncs the nick's main vHost to the grouped nick.
116          */
117         syncongroup = false
118
119         /*
120          * This makes vhosts act as if they are per account.
121          */
122         synconset = false
123 }
124 command { service = "HostServ"; name = "GROUP"; command = "hostserv/group"; }
125
126 /*
127  * hs_list
128  *
129  * Provides the command hostserv/list.
130  *
131  * Used for listing actively set vHosts.
132  */
133 module { name = "hs_list" }
134 command { service = "HostServ"; name = "LIST"; command = "hostserv/list"; permission = "hostserv/list"; }
135
136 /*
137  * hs_off
138  *
139  * Provides the command hostserv/off.
140  *
141  * Used for turning off your vHost.
142  */
143 module { name = "hs_off" }
144 command { service = "HostServ"; name = "OFF"; command = "hostserv/off"; }
145
146 /*
147  * hs_on
148  *
149  * Provides the command hostserv/on.
150  *
151  * Used for turning on your vHost.
152  */
153 module { name = "hs_on" }
154 command { service = "HostServ"; name = "ON"; command = "hostserv/on"; }
155
156 /*
157  * hs_request
158  *
159  * Provides the commands hostserv/request, hostserv/activate, hostserv/reject, and hostserv/waiting.
160  *
161  * Used to manage vHosts requested by users.
162  */
163 module
164 {
165         name = "hs_request"
166
167         /*
168          * If set, Services will send a memo to the user requesting a vHost when it's been
169          * approved or rejected.
170          */
171         memouser = yes
172
173         /*
174          * If set, Services will send a memo to all Services staff when a new vHost is requested.
175          */
176         memooper = yes
177 }
178 command { service = "HostServ"; name = "REQUEST"; command = "hostserv/request"; }
179 command { service = "HostServ"; name = "ACTIVATE"; command = "hostserv/activate"; permission = "hostserv/set"; }
180 command { service = "HostServ"; name = "REJECT"; command = "hostserv/reject"; permission = "hostserv/set"; }
181 command { service = "HostServ"; name = "WAITING"; command = "hostserv/waiting"; permission = "hostserv/set"; }
182
183 /*
184  * hs_set
185  *
186  * Provides the commands hostserv/set and hostserv/setall.
187  *
188  * Used for setting users' vHosts.
189  */
190 module { name = "hs_set" }
191 command { service = "HostServ"; name = "SET"; command = "hostserv/set"; permission = "hostserv/set"; }
192 command { service = "HostServ"; name = "SETALL"; command = "hostserv/setall"; permission = "hostserv/set"; }