maint: removed reverseproxy temp fix

This commit is contained in:
Henning Bocklage 2021-07-19 19:32:39 +02:00
parent fcd4a5261a
commit d2f72e66b2
3 changed files with 2 additions and 25 deletions

View File

@ -1,4 +1,6 @@
# Changelog
## 2021-07-09
- Removed Environment Variable "REVERSEPROXY" again since the original issue was fixed in the webui source. Reverse proxying should now just work by default.
## 2021-06-30
- Added Environment Variable "REVERSEPROXY" as a temporary fix until the websocket topic is fixed in the code
## 2021-06-28

View File

@ -1,16 +1,3 @@
# IMPORTANT - ISSUES WITH NEW ALPINE VERSION
The new Alpine 3.13 has some known issues with docker hosts running a Debian Buster (only 32bit versions) based distribution (like Raspberry PI OS).
See this link for more information and also a workaround: https://docs.linuxserver.io/faq#libseccomp
I have successfully used option 3.
# IMPORTANT - Temporary Reverse Proxy fix
If you use a reverse proxy like traefik or nginx, create an environment Variable called "REVERSEPROXY" and set it to "true".
Until it is fixed, you will have to choose to either have Deemix available through Reverse Proxy or not.
# deemix-docker
Deemix in a Docker container.
@ -63,7 +50,6 @@ Pull the latest container for the latest Deemix version
| `-e PUID=1000` | OPTIONAL: User ID of the user you want the container to run as in order to fix folder permission issues |
| `-e PGID=1000` | OPTIONAL: Group ID, see PUID |
| `-e UMASK_SET=022` | OPTIONAL: Setting UMASK for file permissions Default is 022 |
| `-e REVERSEPROXY=true` | OPTIONAL: Set this if you want to use Deemix behind traefik/nginx. Read the note. |
| `-p 6595:6595` | Port opened for the web interface |
| `-e INTPORT=3333` | EXTRA OPTIONAL: This changes the internal port of deemix. DON'T CHANGE THIS IF YOU DONT KNOW WHY YOU WOULD DO IT |
| `registry.gitlab.com/bockiii/deemix-docker` | This container |

View File

@ -1,11 +0,0 @@
#!/usr/bin/with-contenv bash
# see if the environment variable for reverse proxy is set and then change the websocket to a secure websocket
if [ ! -z ${REVERSEPROXY} ]; then
printf '[cont-init.d] Fixing Websocket for Reverse Proxy \n'
sed -i 's+ws://+wss://+g' /deemix-gui/webui/public/js/bundle.js
printf '[cont-init.d] Fixed Websocket for Reverse Proxy \n'
else
printf '[cont-init.d] No Reverse Proxy enabled, keeping insecure websocket \n'
fi