Skip to content

Commit b9342c5

Browse files
authored
Add nginx config to redirect rulesets to Logius (#17)
* Add nginx config to redirect rulesets to Logius * Override default nginx config
1 parent 3b9ad39 commit b9342c5

4 files changed

Lines changed: 23 additions & 329 deletions

File tree

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
FROM nginx:1.27.0-alpine
22

33
COPY nginx/mime.types /etc/nginx/mime.types
4+
COPY nginx/default.conf /etc/nginx/conf.d/default.conf
45
COPY assets /usr/share/nginx/html

assets/adr/2.1/ruleset.yaml

Lines changed: 0 additions & 189 deletions
This file was deleted.

assets/adr/ruleset.yaml

Lines changed: 0 additions & 140 deletions
This file was deleted.

nginx/default.conf

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
server {
2+
listen 80;
3+
server_name localhost;
4+
5+
location = /adr/ruleset.yaml {
6+
return 301 https://gitdocumentatie.logius.nl/publicatie/api/adr/2.1.0/media/linter.yaml;
7+
}
8+
9+
location = /adr/2.1/ruleset.yaml {
10+
return 301 https://gitdocumentatie.logius.nl/publicatie/api/adr/2.1.0/media/linter.yaml;
11+
}
12+
13+
location / {
14+
root /usr/share/nginx/html;
15+
index index.html index.htm;
16+
}
17+
18+
error_page 500 502 503 504 /50x.html;
19+
location = /50x.html {
20+
root /usr/share/nginx/html;
21+
}
22+
}

0 commit comments

Comments
 (0)