Skip to content

Commit f82be19

Browse files
authored
Update README.md
1 parent def7e92 commit f82be19

File tree

1 file changed

+18
-17
lines changed

1 file changed

+18
-17
lines changed

README.md

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Here you can use a pair of two words or one with numbers, using any special char
7171

7272
- The `CLIENT_SECRET_KEY` variable is the same signature key as the previous one, but for your Unity game. With it, before creating a payment request, you will need to authorize on the API server. **IMPORTANT:** It must also be stored securely and must not be public,
7373

74-
- The `CLIENT_JWT_SIGN` variable is an additional signing key with which your Unity game, after authorizing to the API server and receiving a generated JWT token, is signed with this key. Then, when requesting other API methods, the Unity game sends this generated JWT token in the Authorizatio header, and the server decrypts the token value with this key to allow access to its functionality if the values match.
74+
- The `CLIENT_JWT_SIGN` variable is an additional signing key with which your Unity game, after authorizing to the API server and receiving a generated JWT token, is signed with this key. Then, when requesting other API methods, the Unity game sends this generated JWT token in the Authorization header, and the server decrypts the token value with this key to allow access to its functionality if the values match.
7575

7676
For the Telegram bot, the environment variables will look like this:
7777
```config
@@ -643,6 +643,21 @@ nano YOUR_DOMAIN_NAME
643643
3. Copy and paste this configuration data, but replace `YOUR_DOMAIN_NAME` with your domain:
644644

645645
```nginx
646+
647+
server
648+
{
649+
listen 80;
650+
server_name YOUR_DOMAIN_NAME;
651+
652+
if ($host = YOUR_DOMAIN_NAME) {
653+
return 301 https://$host$request_uri; # managed by Certbot
654+
}
655+
656+
location / {
657+
return 301 https://$host$request_uri;
658+
}
659+
}
660+
646661
server
647662
{
648663
listen 443 ssl;
@@ -653,7 +668,7 @@ server
653668
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
654669
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
655670
656-
location / {
671+
location /api {
657672
proxy_pass http://localhost:1000;
658673
proxy_set_header Host $host;
659674
proxy_set_header X-Real-IP $remote_addr;
@@ -673,20 +688,6 @@ server
673688
add_header 'Cache-Control' 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';
674689
}
675690
}
676-
677-
server
678-
{
679-
listen 80;
680-
server_name YOUR_DOMAIN_NAME;
681-
682-
if ($host = YOUR_DOMAIN_NAME) {
683-
return 301 https://$host$request_uri; # managed by Certbot
684-
}
685-
686-
location / {
687-
return 301 https://$host$request_uri;
688-
}
689-
}
690691
```
691692

692693
Also, in addition to setting up nginx, in this configuration we set up mandatory headers so that the connection succeeds and is not blocked.
@@ -707,7 +708,7 @@ sudo nginx -t
707708

708709
6. Reboot Nginx to apply the new configuration:
709710
```
710-
sudo systemctl reload nginx
711+
sudo systemctl restart nginx
711712
```
712713

713714
## Deploy

0 commit comments

Comments
 (0)