Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions files/nginx/odk.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,11 @@ server {

# For that iframe to work, we'll need another path prefix (enketo-passthrough) under which we can
# reach Enketo — this one will not be intercepted.
location ~ ^/(?:-|enketo-passthrough)(?:/|$) {
rewrite ^/enketo-passthrough(/.*)?$ /-$1 break;
location ~ ^/enketo-passthrough(/.*)?$ {
rewrite ^/enketo-passthrough(/.*)?$ /-$1 last;
}

location ~ ^/-(/.*)?$ {
proxy_pass http://enketo:8005;
proxy_redirect off;
proxy_set_header Host $host;
Expand Down