Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
Nextcloud Notify Push
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eduardo Trujillo
Nextcloud Notify Push
Commits
2c58aac9
Commit
2c58aac9
authored
4 years ago
by
Robin Appelman
Browse files
Options
Downloads
Patches
Plain Diff
fix apache proxy config
parent
37bd64e4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/Command/Setup.php
+1
-0
1 addition, 0 deletions
lib/Command/Setup.php
lib/SetupWizard.php
+9
-3
9 additions, 3 deletions
lib/SetupWizard.php
with
10 additions
and
3 deletions
lib/Command/Setup.php
+
1
−
0
View file @
2c58aac9
...
...
@@ -201,6 +201,7 @@ class Setup extends Base {
$output
->
writeln
(
"Run the following commands to enable the proxy modules"
);
$output
->
writeln
(
" <info>sudo a2enmod proxy</info>"
);
$output
->
writeln
(
" <info>sudo a2enmod proxy_http</info>"
);
$output
->
writeln
(
" <info>sudo a2enmod proxy_wstunnel</info>"
);
$output
->
writeln
(
""
);
$output
->
writeln
(
"Then place the following within the <info><VirtualHost></info> block of the apache config for your nextcloud installation"
);
$output
->
writeln
(
"which can usually be found within <info>/etc/apache2/sites-enabled/</info>"
);
...
...
This diff is collapsed.
Click to expand it.
lib/SetupWizard.php
+
9
−
3
View file @
2c58aac9
...
...
@@ -142,10 +142,15 @@ class SetupWizard {
'PORT'
=>
7867
,
'ALLOW_SELF_SIGNED'
=>
$selfSigned
?
'true'
:
'false'
,
'LOG'
=>
'notify_push=info'
,
'NEXTCLOUD_URL'
=>
$this
->
getNextcloudUrl
()
'NEXTCLOUD_URL'
=>
$this
->
getNextcloudUrl
()
,
]);
// give the server some time to start
usleep
(
500
*
1000
);
for
(
$i
=
0
;
$i
<
20
;
$i
++
)
{
usleep
(
100
*
1000
);
if
(
$this
->
isBinaryRunningAt
(
"localhost:7867"
))
{
break
;
}
}
$status
=
proc_get_status
(
$proc
);
if
(
!
$status
[
'running'
])
{
proc_terminate
(
$proc
);
...
...
@@ -286,7 +291,8 @@ WantedBy = multi-user.target
}
public
function
apacheConfig
():
string
{
return
"ProxyPass /push/ http://localhost:7867/
return
"ProxyPass /push/ws ws://localhost:7867/ws
ProxyPass /push/ http://localhost:7867/
ProxyPassReverse /push/ http://localhost:7867/
"
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment