Project

General

Profile

restmap.conf

Luke Murphey, 11/10/2017 04:45 PM

Download (1.29 KB)

 
1
#############################################################################
2
# Persistent non-EAI handler that facilitates editing of lookup files.
3
#
4
# WARNING: No special capability is required to use this handler because the
5
# handler does capability checking within the handler itself.
6
#############################################################################
7
[script:lookup_editor_rest_handler]
8
match                 = /data/lookup_edit
9
script                = lookup_editor_rest_handler.py
10
scripttype            = persist
11
handler               = lookup_editor_rest_handler.LookupEditorHandler
12
requireAuthentication = true
13
output_modes          = json
14
passPayload           = true
15
passHttpHeaders       = true
16
passHttpCookies       = true
17

    
18
[script:lookup_backups_rest_handler]
19
match                 = /data/lookup_backup
20
script                = lookup_backups_rest_handler.py
21
scripttype            = persist
22
handler               = lookup_backups_rest_handler.LookupBackupsHandler
23
requireAuthentication = true
24
output_modes          = json
25
passPayload           = true
26
passHttpHeaders       = true
27
passHttpCookies       = true
28
# The following enables replaying the POST request on other nodes in the deployment so that backups
29
# appear on other hosts
30
restReplay            = true
31

    
32
[global]
33
allowRestReplay=true