Updated readme
This commit is contained in:
parent
c487c8dc58
commit
2512c86b1f
10
README.md
10
README.md
@ -44,7 +44,9 @@ Edit `/etc/nginx/sites-avalible/fedimusicplayer.nginx` with your text editor of
|
|||||||
|
|
||||||
Edit `/etc/nginx/nginx.conf` and make sure you append the below line at the end of the http block (before the closing bracket)
|
Edit `/etc/nginx/nginx.conf` and make sure you append the below line at the end of the http block (before the closing bracket)
|
||||||
|
|
||||||
`include sites-enabled/*;`
|
```
|
||||||
|
include sites-enabled/*;
|
||||||
|
```
|
||||||
|
|
||||||
When done, run `nginx -t` as root to make sure the configuration is good, and then start nginx `systemctl start --now nginx.service` or restart if it's already running `systemctl restart nginx.service`
|
When done, run `nginx -t` as root to make sure the configuration is good, and then start nginx `systemctl start --now nginx.service` or restart if it's already running `systemctl restart nginx.service`
|
||||||
|
|
||||||
@ -58,10 +60,10 @@ You don't have to use it strictly with Pleroma as you might imagine, but it's de
|
|||||||
|
|
||||||
To use it as such, some configuration is required:
|
To use it as such, some configuration is required:
|
||||||
1. cd into the root directory of your Pleroma installation: `cd /opt/pleroma`
|
1. cd into the root directory of your Pleroma installation: `cd /opt/pleroma`
|
||||||
2. Edit config/prod.secrets.exs and enable showInstanceSpecificPanel.
|
2. Edit `config/prod.secrets.exs` and enable `showInstanceSpecificPanel`.
|
||||||
3. Add CSP parameter "frame-src https://example.tld" to lib/pleroma/web/plugs/http_security_plug.ex
|
3. Add CSP parameter "frame-src https://example.tld" to lib/pleroma/web/plugs/http_security_plug.ex
|
||||||
a. [Click here](https://git.yandere.cc/Anon/pleroma/commit/45f6ad7efda64a82b2a5b94af9b9071610a5dc8a) if you're confused. This is what it looks like on my instance.
|
1. [Click here](https://git.yandere.cc/Anon/pleroma/commit/45f6ad7efda64a82b2a5b94af9b9071610a5dc8a) if you're confused. This is what it looks like on my instance.
|
||||||
b. This is required, otherwise web browsers that implement Content Security Policy (CSP) rules will not allow you to embed your website in an iframe.
|
2. This is required, otherwise web browsers that implement Content Security Policy (CSP) rules will not allow you to embed your website in an iframe.
|
||||||
4. Make the following path `mkdir -p instance/static/instance`
|
4. Make the following path `mkdir -p instance/static/instance`
|
||||||
5. Copy `/opt/FediMusicPlayer/installation/panel.html` into `instance/static/instance`
|
5. Copy `/opt/FediMusicPlayer/installation/panel.html` into `instance/static/instance`
|
||||||
6. Edit `instance/static/instance/panel.html` and replace example.tld with your domain inside the iframe tag.
|
6. Edit `instance/static/instance/panel.html` and replace example.tld with your domain inside the iframe tag.
|
||||||
|
Loading…
Reference in New Issue
Block a user