-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathconfig.php.template
More file actions
94 lines (83 loc) · 3.38 KB
/
config.php.template
File metadata and controls
94 lines (83 loc) · 3.38 KB
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
<?php
return [
/**
* Specifies whether the /uploadTestenv endpoint can be used.
* - false: no uploads are possible (except in interactive runtime, if enabled)
* - true: any uploads are possible - DO NOT USE THIS IN PRODUCTION!
*/
'uploads' => false,
/**
* Specifies whether the interactive runtime is enabled.
* - false: disabled
* - true: enabled
*/
'interactive_run' => false,
/**
* Client authentication requires all requests to have HTTP Basic Authentication.
* - none: Authentication is disabled.
* - none:public_only: Authentication is disabled for all classes that have co:isVisibleTo
* and co:permitsUsageTo both set to co:Public. All other classes will be treated
* by other authentication schemes.
* - shared_secret:runclass: Client must authenticate with the shared secret between
* the identity of this phpMAE instance (auth_ns) and the namespace of the class
* that is requested to run
* - shared_secret:<COID>: Client must authenticate with the shared secret between
* the identity of this phpMAE instance (auth_ns) and the namespace identified
* by the COID.
* Multiple authentication schemes (except "none") can be separated with the
* pipe (|) character. The first valid scheme will be used.
*/
'client_authentication' => 'none',
/**
* Choose whether authentication is only accepted over TLS (HTTPS) connections:
* - true: Credentials are accepted only over HTTPS; this is the default value.
* - false: Credentials are also accepted over insecure connections. This should only
* be used for staging environments or local network deployments.
*/
'client_authentication_must_be_secure' => false,
/**
* Choose whether CORS requests are possible and the origins that are allowed:
* - empty string: No CORS
* - '*': All origins allowed.
* - Multiple origins can be separated with the pipe (|).
'global_cors_origins' => '',
/**
* Choose an operation mode of this phpMAE instance.
* - default: Runs classes as specified in the request URI. Routing functionality is disabled.
* - router:<COID>: Mounts the router specified by the COID. No other classes can be run.
* - router:vhost: Mounts the router specified as phpmae:hasRouter for the namespace
* of the HTTP Host header.
* - router:header: Mounts the router specified by the "C-PhpMae-Router-COID" header.
* Multiple modes can be separated with the pipe (|) character. The first mode
* that applies will be used.
*/
'mode' => 'default',
/**
* Specify the identity and CloudObjects Core authentication credential for this phpMAE instance.
*/
'co.auth_ns' => 'phpmae.dev',
'co.auth_secret' => 'YOUR_SECRET_HERE',
/**
* Specify whether and how data about accounts should be cached. This applies to requests that
* originate from a CloudObjects Account Gateway.
* - none: No caching.
* - file: Cache in filesystem. Uses the "cache_dir" configuration option.
*/
'agws.data_cache' => 'file',
/**
* Specifies whether and how phpMAE should write a log.
* log.target:
* - none: Write no log.
* - errorlog: Write to the default error logger.
* log.level: Use Monolog constants.
*/
'log.target' => 'errorlog',
'log.level' => Monolog\Logger::DEBUG,
/**
* Specifies a maximum time for script execution. Time limit starts
* from the running class.
*/
'execution_time_limit' => 10
'cache_dir' => __DIR__.'/cache',
'uploads_dir' => __DIR__.'/uploads',
];