bundles/nginx: default redirect mode should be 308

This commit is contained in:
Franzi 2021-08-22 07:20:45 +02:00
parent f6231f2d66
commit 65462ca536
Signed by: kunsi
GPG key ID: 12E3D2136B818350
2 changed files with 2 additions and 1 deletions

View file

@ -122,7 +122,7 @@ server {
proxy_read_timeout ${options.get('proxy_read_timeout', 60)};
client_max_body_size ${options.get('max_body_size', '5M')};
% elif 'redirect' in options:
return ${options.get('mode', 302)} ${options['redirect']};
return ${options.get('mode', 308)} ${options['redirect']};
% elif 'return' in options:
return ${options.get('mode', 200)} '${options['return']}';
% elif 'root' in options:

View file

@ -305,6 +305,7 @@ nodes['rx300'] = {
'locations': {
'/': {
'redirect': 'https://twitter.com/daskritzelt/status/1259167444373028864',
'mode': 302,
},
},
},