mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-21 23:20:24 +00:00
update
This commit is contained in:
parent
186b014134
commit
d5a5e6ae00
3 changed files with 7 additions and 1 deletions
|
@ -59,7 +59,7 @@ class DockerContainerApi
|
|||
{
|
||||
$commandId = rand(10000, 99999);
|
||||
|
||||
$shellFileContent = 'docker run --name ' . $this->name . ' ';
|
||||
$shellFileContent = 'docker run -it --network=host --name ' . $this->name . ' ';
|
||||
|
||||
if (!empty($this->port)) {
|
||||
$shellFileContent .= ' -p ' . $this->externalPort . ':' . $this->port . ' ';
|
||||
|
|
|
@ -65,6 +65,9 @@ class DockerContainerResource extends Resource
|
|||
$defaultPort = $port;
|
||||
}
|
||||
}
|
||||
if ($defaultPort == 80) {
|
||||
$defaultPort = 83;
|
||||
}
|
||||
|
||||
return $form
|
||||
->schema([
|
||||
|
|
|
@ -39,6 +39,9 @@
|
|||
|
||||
@if (!empty($proxyPass))
|
||||
|
||||
ProxyPreserveHost On
|
||||
ProxyRequests Off
|
||||
ProxyVia On
|
||||
ProxyPass / {{$proxyPass}}
|
||||
ProxyPassReverse / {{$proxyPass}}
|
||||
|
||||
|
|
Loading…
Reference in a new issue