Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
AmirRezaM75 committed Feb 27, 2024
1 parent e46f93f commit c9c8146
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,48 @@ Capturing (taking) character cards will earn a bonus:

## Production

### Nginx

```
server
{
listen 80;
server_name api.skullking.ir;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
ssl_certificate /etc/letsencrypt/live/skullking.ir/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/skullking.ir/privkey.pem;
server_name api.skullking.ir;
location / {
proxy_pass http://127.0.0.1:3002/;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /games/join {
proxy_pass http://127.0.0.1:3002$request_uri;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 300;
proxy_connect_timeout 300;
proxy_send_timeout 300;
}
}
```

### Docker

```bash
docker compose -f docker-compose-production.yml up -d --build
```

0 comments on commit c9c8146

Please sign in to comment.