You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18-17Lines changed: 18 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -71,7 +71,7 @@ Here you can use a pair of two words or one with numbers, using any special char
71
71
72
72
- 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,
73
73
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.
75
75
76
76
For the Telegram bot, the environment variables will look like this:
77
77
```config
@@ -643,6 +643,21 @@ nano YOUR_DOMAIN_NAME
643
643
3. Copy and paste this configuration data, but replace `YOUR_DOMAIN_NAME` with your domain:
644
644
645
645
```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
+
646
661
server
647
662
{
648
663
listen 443 ssl;
@@ -653,7 +668,7 @@ server
653
668
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
654
669
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
0 commit comments