Open rom1504 opened 3 years ago
should this go in it's own repo? , that way we can have one click solutions in gcp/aws
I think it's fine in a folder of this repo
would be good to add a check in that proxy so it can only connect to mc server (by using mc.ping before opening the connection)
Nginx:
upstream mineproxy {
server localhost:8080;
}
server {
# listen 80; # uncomment for http
listen 443 ssl; # comment for http
server_name pproxy.rom1504.fr;
ssl_certificate /etc/letsencrypt/live/rom1504.fr-0001/fullchain.pem; # comment for http
ssl_certificate_key /etc/letsencrypt/live/rom1504.fr-0001/privkey.pem; # comment for http
location / {
proxy_pass http://mineproxy;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection upgrade;
proxy_set_header Host $host;
}
}
proxy code:
example of apache2 config (http):
https:
would be useful to have: