Merge branch '667-apache-proxy-0.18' into 'develop'

fix apache conf file for 0.18

Closes #667

See merge request funkwhale/funkwhale!552
merge-requests/554/head
Eliot Berriot 2019-01-23 09:27:01 +01:00
commit 33a3c0b8c5
2 zmienionych plików z 9 dodań i 10 usunięć

Wyświetl plik

@ -0,0 +1 @@
Make Apache configuration file work with 0.18 changes (#667)

Wyświetl plik

@ -46,10 +46,6 @@ Define MUSIC_DIRECTORY_PATH /srv/funkwhale/data/music
# Tell the api that the client is using https # Tell the api that the client is using https
RequestHeader set X-Forwarded-Proto "https" RequestHeader set X-Forwarded-Proto "https"
DocumentRoot /srv/funkwhale/front/dist
FallbackResource /index.html
# Configure Proxy settings # Configure Proxy settings
# ProxyPreserveHost pass the original Host header to the backend server # ProxyPreserveHost pass the original Host header to the backend server
ProxyVia On ProxyVia On
@ -68,15 +64,12 @@ Define MUSIC_DIRECTORY_PATH /srv/funkwhale/data/music
Allow from all Allow from all
</Proxy> </Proxy>
# Activating WebSockets <Location "/">
ProxyPass "/api/v1/activity" ${funkwhale-api-ws}/api/v1/activity
<Location "/api">
# similar to nginx 'client_max_body_size 100M;' # similar to nginx 'client_max_body_size 100M;'
LimitRequestBody 104857600 LimitRequestBody 104857600
ProxyPass ${funkwhale-api}/api ProxyPass ${funkwhale-api}/
ProxyPassReverse ${funkwhale-api}/api ProxyPassReverse ${funkwhale-api}/
</Location> </Location>
<Location "/federation"> <Location "/federation">
ProxyPass ${funkwhale-api}/federation ProxyPass ${funkwhale-api}/federation
@ -94,8 +87,13 @@ Define MUSIC_DIRECTORY_PATH /srv/funkwhale/data/music
ProxyPassReverse ${funkwhale-api}/.well-known/ ProxyPassReverse ${funkwhale-api}/.well-known/
</Location> </Location>
ProxyPass "/front" "!"
Alias /front /srv/funkwhale/front/dist
ProxyPass "/media" "!"
Alias /media /srv/funkwhale/data/media Alias /media /srv/funkwhale/data/media
ProxyPass "/staticfiles" "!"
Alias /staticfiles /srv/funkwhale/data/static Alias /staticfiles /srv/funkwhale/data/static
# Setting appropriate access levels to serve frontend # Setting appropriate access levels to serve frontend