Fix for ssl with mixed content error. Based on https://github.com/treyyoder/quakejs-docker/pull/24 but switching the sed for changing the files manually. Can run with docker command mentioned in https://hub.docker.com/r/treyyoder/quakejs
My docker-compose.yml with nginx proxy manager is:
name: quakejs
services:
quakejs:
stdin_open: true
tty: true
container_name: quakejs
environment:
- HTTP_PORT=80
image: kvan13/quakejs
networks:
default:
external: true
name: kvan_net
A better default for no reverse proxy may be:
name: quakejs
services:
quakejs:
stdin_open: true
tty: true
container_name: quakejs
environment:
- HTTP_PORT=80
ports:
- 8080:80
- 27960:27960
image: kvan13/quakejs
To get the npm to work I have the proxy host setup as follows:
Domain Names: quakejs.example.com
Scheme: http
Forward Hostname/IP: quakejs
Forward Port: 80
Websockets Support: True
Custom Locations:
Location: /
Scheme: http
Forward Hostname/IP: quakejs
Forward Port: 80
advanced for location /
# CORS headers
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,authorization';
add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';
Location: /ws
Scheme: http
Forward Hostname/IP: quakejs
Forward Port: 27960
# This is how i got it to work setting up the websocket on a different location
SSL:
ssl cert: quakejs.example.com
Force SSL: True # may not be required but i have on
Advanced:
none
For the above nginx proxy manager conf steps to access are:
1. go to site, and do download thing
2. once connecting thing pops up hit escape
3. go to multiplayer
4. specific server, quakejs.example.com/ws
5. connect and hit enter to start multiplayer lobby
Content type
Image
Digest
sha256:42fb44471…
Size
580.4 MB
Last updated
over 2 years ago
docker pull kvan13/quakejs