bundles/nginx: default redirect mode should be 308
This commit is contained in:
parent
f6231f2d66
commit
65462ca536
2 changed files with 2 additions and 1 deletions
|
@ -122,7 +122,7 @@ server {
|
||||||
proxy_read_timeout ${options.get('proxy_read_timeout', 60)};
|
proxy_read_timeout ${options.get('proxy_read_timeout', 60)};
|
||||||
client_max_body_size ${options.get('max_body_size', '5M')};
|
client_max_body_size ${options.get('max_body_size', '5M')};
|
||||||
% elif 'redirect' in options:
|
% elif 'redirect' in options:
|
||||||
return ${options.get('mode', 302)} ${options['redirect']};
|
return ${options.get('mode', 308)} ${options['redirect']};
|
||||||
% elif 'return' in options:
|
% elif 'return' in options:
|
||||||
return ${options.get('mode', 200)} '${options['return']}';
|
return ${options.get('mode', 200)} '${options['return']}';
|
||||||
% elif 'root' in options:
|
% elif 'root' in options:
|
||||||
|
|
|
@ -305,6 +305,7 @@ nodes['rx300'] = {
|
||||||
'locations': {
|
'locations': {
|
||||||
'/': {
|
'/': {
|
||||||
'redirect': 'https://twitter.com/daskritzelt/status/1259167444373028864',
|
'redirect': 'https://twitter.com/daskritzelt/status/1259167444373028864',
|
||||||
|
'mode': 302,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue