Skip to content
Snippets Groups Projects
Commit a1f30af9 authored by Anton Sarukhanov's avatar Anton Sarukhanov
Browse files

WIP: kutt

parent daa1c860
No related branches found
No related tags found
No related merge requests found
Pipeline #222 passed with stages
in 1 minute and 46 seconds
server {
listen 80;
recursive_error_pages on;
location / {
root /opt/ant.sr/html;
error_page 404 = @files;
......@@ -9,7 +10,14 @@ server {
error_page 404 = @urlshortener;
}
location @urlshortener {
# TODO!
return 404;
proxy_pass http://kutt.antsr.svc.cluster.local:3000;
proxy_intercept_errors on;
proxy_set_header Host ant.sr;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-for $remote_addr;
error_page 404 = @notfound;
}
location @notfound {
return 404 "Sorry, not found!";
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment