Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Julien Veyssier
funkwhale
Commits
25a0c0e6
Commit
25a0c0e6
authored
Jun 07, 2018
by
RenonDis
Browse files
XForwardedProto to https & covers granted
parent
0a7c719a
Changes
1
Hide whitespace changes
Inline
Side-by-side
deploy/apache.conf
View file @
25a0c0e6
...
...
@@ -9,7 +9,7 @@ Define MUSIC_DIRECTORY_PATH /srv/funkwhale/data/music
# Define funkwhale-api-ws ws://localhost:5000
# HTTP request redirected to HTTPS
# HTTP request
s
redirected to HTTPS
<
VirtualHost
*:
80
>
ServerName
${
funkwhale
-
sn
}
...
...
@@ -22,7 +22,6 @@ Define MUSIC_DIRECTORY_PATH /srv/funkwhale/data/music
Options
None
Require
all
granted
</
Location
>
</
VirtualHost
>
...
...
@@ -46,6 +45,8 @@ Define MUSIC_DIRECTORY_PATH /srv/funkwhale/data/music
SSLCertificateKeyFile
/
etc
/
letsencrypt
/
live
/${
funkwhale
-
sn
}/
privkey
.
pem
Include
/
etc
/
letsencrypt
/
options
-
ssl
-
apache
.
conf
# Tell the api that the client is using https
RequestHeader
set
X
-
Forwarded
-
Proto
"https"
DocumentRoot
/
srv
/
funkwhale
/
front
/
dist
...
...
@@ -112,6 +113,12 @@ Define MUSIC_DIRECTORY_PATH /srv/funkwhale/data/music
Require
all
granted
</
Directory
>
<
Directory
/
srv
/
funkwhale
/
data
/
media
/
albums
>
Options
FollowSymLinks
AllowOverride
None
Require
all
granted
</
Directory
>
# XSendFile is serving audio files
# WARNING : permissions on paths specified below overrides previous definition,
# everything under those paths is potentially exposed.
...
...
@@ -123,6 +130,5 @@ Define MUSIC_DIRECTORY_PATH /srv/funkwhale/data/music
XSendFilePath
${
MUSIC_DIRECTORY_PATH
}
SetEnv
MOD_X_SENDFILE_ENABLED
1
</
IfModule
>
</
VirtualHost
>
</
IfModule
>
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment