Skip to content

Commit

Permalink
Move common 'forward headers' proxy section in the prerequisites
Browse files Browse the repository at this point in the history
  • Loading branch information
fxthomas committed Apr 15, 2020
1 parent f45bd00 commit cfd6231
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 68 deletions.
17 changes: 0 additions & 17 deletions proxy/apache.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,23 +75,6 @@ Restart the `apache2` service:
sudo systemctl restart apache2.service
```

#### Forward headers

You will also need to make sure Airsonic uses the correct headers for redirects, by setting the `server.use-forward-headers` property to `true`.

To do so, stop your Airsonic server or Docker image, then edit the `config/application.properties` file:

```
nano /path/to/airsonic/config/application.properties
```

Add the following line to the bottom of the file:
```
server.use-forward-headers=true
```

Use Ctrl+X to save and exit the file, and restart your Airsonic server or Docker image.

#### Content Security Policy

You may face some `Content-Security-Policy` issues. To fix this, add the following line to your Apache configuration:
Expand Down
17 changes: 0 additions & 17 deletions proxy/caddy.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,3 @@ Check the Caddy config for validity, and then restart the Caddy service:
caddy -conf /etc/caddy/caddy.conf -validate
sudo systemctl restart caddy.service
```

#### Forward headers

You will also need to make sure Airsonic uses the correct headers for redirects, by setting the `server.use-forward-headers` property to `true`.

To do so, stop your Airsonic server or Docker image, then edit the `config/application.properties` file:

```
nano /path/to/airsonic/config/airsonic.properties
```

Add the following line to the bottom of the file:
```
server.use-forward-headers=true
```

Use Ctrl+X to save and exit the file, and restart your Airsonic server or Docker image.
17 changes: 0 additions & 17 deletions proxy/haproxy.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,20 +65,3 @@ Restart the HAProxy service:
```
sudo systemctl restart haproxy.service
```

#### Forward headers

You will also need to make sure Airsonic uses the correct headers for redirects, by setting the `server.use-forward-headers` property to `true`.

To do so, stop your Airsonic server or Docker image, then edit the `config/application.properties` file:

```
nano /path/to/airsonic/config/application.properties
```

Add the following line to the bottom of the file:
```
server.use-forward-headers=true
```

Use Ctrl+X to save and exit the file, and restart your Airsonic server or Docker image.
17 changes: 0 additions & 17 deletions proxy/nginx.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,23 +84,6 @@ Restart the Nginx service:
sudo systemctl restart nginx.service
```

#### Forward headers

You will also need to make sure Airsonic uses the correct headers for redirects, by setting the `server.use-forward-headers` property to `true`.

To do so, stop your Airsonic server or Docker image, then edit the `config/application.properties` file:

```
nano /path/to/airsonic/config/application.properties
```

Add the following line to the bottom of the file:
```
server.use-forward-headers=true
```

Use Ctrl+X to save and exit the file, and restart your Airsonic server or Docker image.

#### Content Security Policy

You may face some `Content-Security-Policy` issues. To fix this, add the following line to your Nginx configuration:
Expand Down
19 changes: 19 additions & 0 deletions proxy/prerequisites.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ This guide assumes you already have a TLS certificate. [Let's Encrypt](https://l

### Configure Airsonic

##### Basic configuration

A few settings should be tweaked via Spring Boot or Tomcat
configuration:

Expand All @@ -27,6 +29,23 @@ To change this, please use one of the guide below according to your installation
- [Tomcat](/docs/configure/tomcat/)
- [Standalone](/docs/configure/standalone/)

##### Forward headers

You will also need to make sure Airsonic uses the correct headers for redirects, by setting the `server.use-forward-headers` property to `true`.

To do so, stop your Airsonic server or Docker image, then edit the `config/application.properties` file:

```
nano /path/to/airsonic/config/application.properties
```

Add the following line to the bottom of the file:
```
server.use-forward-headers=true
```

Use Ctrl+X to save and exit the file, and restart your Airsonic server or Docker image.

### Reverse proxy configuration

##### How it works
Expand Down

0 comments on commit cfd6231

Please sign in to comment.