Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Colyseus nodejs and nginx with ecosystem.config.js #36

Open
matrosov2019 opened this issue Apr 9, 2023 · 1 comment
Open

Colyseus nodejs and nginx with ecosystem.config.js #36

matrosov2019 opened this issue Apr 9, 2023 · 1 comment

Comments

@matrosov2019
Copy link

matrosov2019 commented Apr 9, 2023

Please give me instruction for nginx server where port 2567 is default
In new version colyseus i dont understand how this work

I am try run step by step of your instruction, but my app not working.

@matrosov2019
Copy link
Author

My nginx config now:
server {
server_name YOUR_DOMAIN;

location / {
    proxy_pass http://localhost:2567;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection 'upgrade';
    proxy_set_header Host $host;
    proxy_cache_bypass $http_upgrade;
    proxy_read_timeout 86400s;
    proxy_send_timeout 86400s;
}



listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/YOUR_DOMAIN/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/YOUR_DOMAIN/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot

}
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant