krateng / maloja

Self-hosted music scrobble database to create personal listening statistics and charts

Home Page:https://maloja.krateng.ch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Configuring apache 2

VlaK0r opened this issue · comments

Hello!
Thank you for your hard work!

The apache settings are as follows:

maloja.conf

<VirtualHost *:80>
   ServerName http://maloja.domen.com
   ServerAdmin webmaster@local
   RewriteEngine On
      RewriteCond %{HTTP:Connection} Upgrade [NC]
      RewriteCond %{HTTP:Upgrade} websocket [NC]
      RewriteRule /(.*) ws://localhost:42010/$1 [P,L]
   AllowEncodedSlashes NoDecode
   ProxyPreserveHost On
   ProxyPass / http://127.0.0.1:42010/ nocanon
   ProxyPassReverse / http://127.0.0.1:42010/
RewriteCond %{SERVER_NAME} =maloja.domen.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>

maloja-le-ssl.conf

<IfModule mod_ssl.c>
<VirtualHost *:443>
   ServerName https://maloja.domen.com
   ServerAdmin webmaster@local
   RewriteEngine On
      RewriteCond %{HTTP:Connection} Upgrade [NC]
      RewriteCond %{HTTP:Upgrade} websocket [NC]
      RewriteRule /(.*) ws://localhost:42010/$1 [P,L]
   AllowEncodedSlashes NoDecode
   ProxyPreserveHost On
   ProxyPass / http://127.0.0.1:42010/ nocanon
   ProxyPassReverse / http://127.0.0.1:42010/
SSLCertificateFile /etc/letsencrypt/live/maloja.domen.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/maloja.domen.com/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
</IfModule>

With these settings, the search does not work and it is impossible to edit images.
Please tell me where is my mistake?