Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
el-captain-manager
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
el-captain-manager
Commits
d522d5bd
Commit
d522d5bd
authored
Jul 05, 2026
by
Mahmoud Aglan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: enable SSL before forcing it (CapRover requires domain SSL first)
Co-Authored-By:
Claude Opus 4.6
<
noreply@anthropic.com
>
parent
eb5a517f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
InstanceProvisionerService.php
app/Services/InstanceProvisionerService.php
+2
-2
No files found.
app/Services/InstanceProvisionerService.php
View file @
d522d5bd
...
@@ -137,7 +137,6 @@ private function deployApp(Instance $instance, string $dbPassword, string $admin
...
@@ -137,7 +137,6 @@ private function deployApp(Instance $instance, string $dbPassword, string $admin
$this
->
caprover
->
configureAppFull
(
$instance
->
app_name
,
[
$this
->
caprover
->
configureAppFull
(
$instance
->
app_name
,
[
'containerHttpPort'
=>
80
,
'containerHttpPort'
=>
80
,
'instanceCount'
=>
1
,
'instanceCount'
=>
1
,
'forceSsl'
=>
true
,
'volumes'
=>
[
'volumes'
=>
[
[
'containerPath'
=>
'/var/www/html/storage/app'
,
'volumeName'
=>
"
{
$instance
->
app_name
}
-storage"
],
[
'containerPath'
=>
'/var/www/html/storage/app'
,
'volumeName'
=>
"
{
$instance
->
app_name
}
-storage"
],
],
],
...
@@ -153,10 +152,11 @@ private function deployApp(Instance $instance, string $dbPassword, string $admin
...
@@ -153,10 +152,11 @@ private function deployApp(Instance $instance, string $dbPassword, string $admin
],
],
]);
]);
// Step 3: Enable SSL
// Step 3: Enable SSL
then force it
$progress
(
'Enabling SSL...'
);
$progress
(
'Enabling SSL...'
);
try
{
try
{
$this
->
caprover
->
enableSsl
(
$instance
->
app_name
);
$this
->
caprover
->
enableSsl
(
$instance
->
app_name
);
$this
->
caprover
->
forceSsl
(
$instance
->
app_name
);
}
catch
(
\Throwable
$e
)
{
}
catch
(
\Throwable
$e
)
{
// Wildcard cert handles this — not critical
// Wildcard cert handles this — not critical
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment