-
Notifications
You must be signed in to change notification settings - Fork 16
/
RESTfm.ini
150 lines (128 loc) · 4.74 KB
/
RESTfm.ini
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
; RESTfm configuration file.
;
; This file initially distributed with version: %%VERSION%%
[settings]
; If we are located in a subdirectory off the web root, set this.
; Must also be configured in .htaccess if using Apache web server.
; No trailing slash!
baseURI = '/RESTfm'
; Render formats nicely.
; Improves readability of the native json and xml formats at the expense
; of increased data size. Increased processing overhead for json with
; PHP < 5.4.0. Not recommended in production.
formatNicely = false
; Enforce SSL access for clients connecting to RESTfm.
; Should also be configured in .htaccess if using Apache web server.
; Should also be configured in web.config if using IIS web server.
; Do not set this true until after the report page (report.php) states
; that RESTfm is fully functional when accessed via http and https.
SSLOnly = false
; Enforce strict SSL certificate checking when RESTfm is connecting to
; the FileMaker Server Web Publishing Engine back-end. This setting is
; relevant only when the database hostspec is using https.
; Check https://docs.restfm.com/article/22-ssl-troubleshooting
; for further details.
strictSSLCertsFMS = true
; Enforce strict SSL certificate checking for RESTfm connecting to
; itself when executing the diagnostics report page (report.php). This
; setting is used only in determining if clients are able to connect to
; the RESTfm front-end.
; Check https://docs.restfm.com/article/22-ssl-troubleshooting
; for further details.
strictSSLCertsReport = true
; Respond 403 Forbidden on 401 Unauthorized.
; Makes browser side applications run nicer when HTTP basic authentication
; fails. Stops the browser popping up a Username/Password dialogue,
; allowing the developer to handle usernames and passwords in JavaScript.
; Note: Setting is ignored for html and txt formats.
forbiddenOnUnauthorized = true
; Dump raw received data, parsed received data, and response data to a
; generated subdirectory (restfmdump.xxxxxxx) of the php.ini configured
; temporary directory. WARNING: This is a verbose diagnostic aid, it will
; generate a new subdirectory for every single HTTP request!
dumpData = false
; Diagnostic reporting.
; This is enabled by default to assist in initial configuration.
; Should be disabled once deployed to improve performance, and prevent
; leakage of privileged information.
diagnostics = true
[database]
; FileMaker Server HTTP URL.
;hostspec = https://example.com
;hostspec = https://example.com:8081
hostspec = https://127.0.0.1
; Set true to use the FMS Data API. Set false to use legacy FMS PHP API.
; NOTE: https is required in the hostspec if this is true.
dataApi = true
; Default username and password if none supplied in query or no API key
; supplied. May be empty string for "guest" access.
; Only applies if useDefaultAuthentication is true.
useDefaultAuthentication = false
defaultUsername = read
defaultPassword = read
[formats]
; Each line is a format that may be enabled (true) or disabled (false).
;
; Each format is either built-in (lib/RESTfm/lib/Format) or
; an xslt (lib/RESTfm/xslt).
;
; Formats are selected by appending a .<format> suffix to the URI endpoint,
; e.g. https://example.com/RESTfm/<database>/layout/<layout>.<format>
;
; Chargify multi-dimensional payload format.
chargify = false
;
; RESTfmSync transfer format.
dict = true
;
; FileMaker FMPXMLRESULT Grammar compliant.
fmpxml = false
;
; Handy for testing with a browser.
html = true
;
; JavaScript Object Notation.
json = true
;
; A simple to parse format.
simple = true
;
; Format for simple Sync Meta queries.
syncMeta = true
;
; Handy for testing.
txt = false
;
; Extensible Markup Language.
xml = true
[databasePDOMap]
; EXPERIMENTAL:
; Optional database names that map to DSNs as supported by PHP's PDO interface
; drivers.
; https://www.php.net/manual/en/pdo.drivers.php
;
;example1 = 'mysql:host=127.0.0.1;dbname=testdb'
;example2 = 'sqlite:/export/databases/testdb.sqlite3'
[keys]
; Each line is a unique API key associated with a username and password, where
; each username and password must be separated by a colon.
;
;EXAMPLEKEY = exampleuser:examplepass
[origins]
; List of allowed origins for cross-site HTTP requests.
; https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
;
; It is not necessary to set these for most installations. Only web
; applications being served from a different domain to RESTfm will need
; this.
;
; An origin of '*' (wildcard) will match all domains.
; WARNING: This is probably not what you want!
;
;allowed[] = http://example.com
;allowed[] = https://example.com
[config]
; List of include directories relative to this ini file containing further ini
; files. Relative parent directories are allowed, making it possible to include
; files outside of the html directory tree e.g. ../../../my_conf.d
include[] = conf.d