-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathnginx.conf
More file actions
30 lines (26 loc) · 1.15 KB
/
Copy pathnginx.conf
File metadata and controls
30 lines (26 loc) · 1.15 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
# Mock for the SSD SOAP service (open_inwoner.ssd / open_inwoner.soap).
# Doesn't parse SOAP bodies at all -- it dispatches purely on the URL path
# each operation posts to (see SSDBaseClient.templated_request() in
# src/open_inwoner/ssd/client.py), which is enough to exercise "Mijn
# uitkeringen" end to end. Response bodies are the same fixtures the
# Python unit tests use (src/open_inwoner/ssd/tests/files/), mounted
# read-only by docker/docker-compose.ssd-mock.yml, so there's one copy to
# keep in sync.
server {
listen 80 default_server;
server_name _;
default_type text/xml;
# SSDBaseClient always POSTs (client.py), but nginx's static-file handler
# only serves GET/HEAD and 405s otherwise. Standard workaround: redirect
# the 405 back through the same URI, which re-enters without the method
# check.
error_page 405 = $uri;
# JaaropgaveClient.get_reports()
location = /JaarOpgaveClient-v0400 {
alias /usr/share/nginx/html/jaaropgave_response.xml;
}
# UitkeringClient.get_reports()
location = /UitkeringsSpecificatieClient-v0600 {
alias /usr/share/nginx/html/uitkering_response_basic.xml;
}
}