Skip to content
Snippets Groups Projects
Verified Commit 982e3c51 authored by mal's avatar mal
Browse files

Add setting for custom nginx config

parent 8e4cf925
Branches
No related tags found
1 merge request!22Add setting for custom nginx config
...@@ -133,6 +133,7 @@ Role Variables ...@@ -133,6 +133,7 @@ Role Variables
| `funkwhale_letsencrypt_enabled` | `true` | If `true`, will configure SSL with certbot and Let's Encrypt | | `funkwhale_letsencrypt_enabled` | `true` | If `true`, will configure SSL with certbot and Let's Encrypt |
| `funkwhale_media_path` | `/srv/funkwhale/data/media` | Path where audio and uploaded files should be stored (**no trailing slash**) | | `funkwhale_media_path` | `/srv/funkwhale/data/media` | Path where audio and uploaded files should be stored (**no trailing slash**) |
| `funkwhale_music_path` | `/srv/funkwhale/data/music` | Path to your existing music library, to use with [CLI import](https://docs.funkwhale.audio/admin/importing-music.html) (**no trailing slash**) | | `funkwhale_music_path` | `/srv/funkwhale/data/music` | Path to your existing music library, to use with [CLI import](https://docs.funkwhale.audio/admin/importing-music.html) (**no trailing slash**) |
| `funkwhale_nginx_additional_config` | `""` | Additional nginx configuration to add to the Funkwhale `server{}` block |
| `funkwhale_nginx_managed` | `true` | If `true`, will install and configure nginx | | `funkwhale_nginx_managed` | `true` | If `true`, will install and configure nginx |
| `funkwhale_nginx_max_body_size` | `100M` | Value of nginx's `max_body_size` parameter to use | | `funkwhale_nginx_max_body_size` | `100M` | Value of nginx's `max_body_size` parameter to use |
| `funkwhale_protocol` | `https` | If set to `https`, will configure Funkwhale and Nginx to work behind HTTPS. Use `http` to completely disable SSL. | | `funkwhale_protocol` | `https` | If set to `https`, will configure Funkwhale and Nginx to work behind HTTPS. Use `http` to completely disable SSL. |
......
...@@ -30,6 +30,7 @@ funkwhale_nginx_managed: true ...@@ -30,6 +30,7 @@ funkwhale_nginx_managed: true
funkwhale_nginx_tls_termination: true funkwhale_nginx_tls_termination: true
funkwhale_nginx_max_body_size: 100M funkwhale_nginx_max_body_size: 100M
funkwhale_nginx_use_compression: true funkwhale_nginx_use_compression: true
funkwhale_nginx_additional_config:
funkwhale_ssl_cert_path: funkwhale_ssl_cert_path:
funkwhale_ssl_key_path: funkwhale_ssl_key_path:
funkwhale_protocol: https funkwhale_protocol: https
......
...@@ -144,4 +144,5 @@ server { ...@@ -144,4 +144,5 @@ server {
return 403; return 403;
} }
{% endif -%} {% endif -%}
{{ funkwhale_nginx_additional_config }}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment