Pass behind_proxy properly.
This commit is contained in:
parent
3ee7b7cff1
commit
7e0cbe8db1
1 changed files with 6 additions and 4 deletions
|
@ -84,11 +84,12 @@ class NodesController extends Controller
|
||||||
$repo = new NodeRepository;
|
$repo = new NodeRepository;
|
||||||
$node = $repo->create(array_merge(
|
$node = $repo->create(array_merge(
|
||||||
$request->only([
|
$request->only([
|
||||||
'public', 'disk_overallocate', 'memory_overallocate',
|
'public', 'disk_overallocate',
|
||||||
|
'memory_overallocate', 'behind_proxy',
|
||||||
]),
|
]),
|
||||||
$request->intersect([
|
$request->intersect([
|
||||||
'name', 'location_id', 'fqdn',
|
'name', 'location_id', 'fqdn',
|
||||||
'scheme', 'memory', 'disk', 'behind_proxy',
|
'scheme', 'memory', 'disk',
|
||||||
'daemonBase', 'daemonSFTP', 'daemonListen',
|
'daemonBase', 'daemonSFTP', 'daemonListen',
|
||||||
])
|
])
|
||||||
));
|
));
|
||||||
|
@ -215,10 +216,11 @@ class NodesController extends Controller
|
||||||
try {
|
try {
|
||||||
$node = $repo->update($id, array_merge(
|
$node = $repo->update($id, array_merge(
|
||||||
$request->only([
|
$request->only([
|
||||||
'public', 'disk_overallocate', 'memory_overallocate',
|
'public', 'disk_overallocate',
|
||||||
|
'memory_overallocate', 'behind_proxy',
|
||||||
]),
|
]),
|
||||||
$request->intersect([
|
$request->intersect([
|
||||||
'name', 'location_id', 'fqdn', 'behind_proxy',
|
'name', 'location_id', 'fqdn',
|
||||||
'scheme', 'memory', 'disk', 'upload_size',
|
'scheme', 'memory', 'disk', 'upload_size',
|
||||||
'reset_secret', 'daemonSFTP', 'daemonListen',
|
'reset_secret', 'daemonSFTP', 'daemonListen',
|
||||||
])
|
])
|
||||||
|
|
Loading…
Reference in a new issue