-
Notifications
You must be signed in to change notification settings - Fork 16
/
config.yaml.mako
141 lines (136 loc) · 4.49 KB
/
config.yaml.mako
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
throwErrorOnExtraParameters: true
templates:
1 A4 portrait: !template
reportTemplate: A4_Portrait.jrxml
attributes:
title: !string &title
default: ""
comments: !string &comments
default: ""
debug: !boolean &debug
default: false
legend: !legend &legend {}
map: !map &map
maxDpi: 254
dpiSuggestions: [254]
zoomLevels: !zoomLevels
scales: [100, 250, 500, 2500, 5000, 10000, 25000, 50000, 100000, 500000]
width: 555
height: 675
northArrow: !northArrow &northArrow
size: 40
default:
graphic: "file:///north.svg"
scalebar: !scalebar &scalebar
width: 150
height: 20
default:
fontSize: 8
datasource: !datasource &datasource
attributes:
title: !string {}
table: !table {}
processors: &processors
- !reportBuilder # compile all reports in current directory
directory: '.'
- !configureHttpRequests &configureHttpRequests
httpProcessors:
- !mapUri
mapping:
(https?)://${__import__('re').escape(host)}/(.*): "http://127.0.0.1/$2"
- !forwardHeaders
matchers:
- !localMatch {}
headers:
- Cookie
- Host
- !forwardHeaders
headers:
- Referer
- !restrictUris
matchers:
- !localMatch
pathRegex: /${__import__('re').escape(instanceid)}/wsgi/proj/.*
- !localMatch
pathRegex: /${__import__('re').escape(instanceid)}/wsgi/static/.*
- !localMatch
pathRegex: /${__import__('re').escape(instanceid)}/wsgi/static-ngeo/.*
- !localMatch
pathRegex: /${__import__('re').escape(instanceid)}/wsgi/mapserv_proxy
- !localMatch
pathRegex: /${__import__('re').escape(instanceid)}/tiles/.*
- !localMatch
pathRegex: /2\.[0-9]+/tiles/.*
- !localMatch
reject: true
- !ipMatch
ip: 10.0.0.0
mask: 255.0.0.0
reject: true
- !ipMatch
ip: 172.16.0.0
mask: 255.240.0.0
reject: true
- !ipMatch
ip: 192.168.0.0
mask: 255.255.0.0
reject: true
- !acceptAll {}
- !prepareLegend
template: legend.jrxml
- !createMap {}
- !createNorthArrow {}
- !createScalebar {}
- !createDataSource
processors:
- !prepareTable
dynamic: true
columns:
icon: !urlImage
urlExtractor: (.*)
urlGroup: 1
2 A4 landscape: !template
reportTemplate: A4_Landscape.jrxml
attributes:
title: *title
comments: *comments
debug: *debug
legend: *legend
map: !map
<<: *map
width: 800
height: 441
northArrow: *northArrow
scalebar: *scalebar
datasource: *datasource
processors: *processors
3 A3 portrait: !template
reportTemplate: A3_Portrait.jrxml
attributes:
title: *title
comments: *comments
debug: *debug
legend: *legend
map: !map
<<: *map
width: 800
height: 1000
northArrow: *northArrow
scalebar: *scalebar
datasource: *datasource
processors: *processors
4 A3 landscape: !template
reportTemplate: A3_Landscape.jrxml
attributes:
title: *title
comments: *comments
debug: *debug
legend: *legend
map: !map
<<: *map
width: 1150
height: 673
northArrow: *northArrow
scalebar: *scalebar
datasource: *datasource
processors: *processors