mirror of
https://git.rezel.net/LudoTech/traque.git
synced 2026-02-09 10:20:16 +01:00
updated readme, changed cert directory
This commit is contained in:
Binary file not shown.
@@ -8,7 +8,7 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "3000:443"
|
- "3000:443"
|
||||||
volumes:
|
volumes:
|
||||||
- ./traque-back/ssl:/etc/nginx/ssl:ro
|
- ./proxy/ssl:/etc/nginx/ssl:ro
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
back:
|
back:
|
||||||
|
|||||||
1
proxy/.gitignore
vendored
Normal file
1
proxy/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
ssl/
|
||||||
@@ -16,9 +16,8 @@ SSL_KEY = "/path/to/privkey.pem"
|
|||||||
SSL_CERT = "/path/to/cert.pem"
|
SSL_CERT = "/path/to/cert.pem"
|
||||||
ADMIN_PASSWORD = 'admin_password_here'
|
ADMIN_PASSWORD = 'admin_password_here'
|
||||||
MAX_PENALTIES = 3
|
MAX_PENALTIES = 3
|
||||||
ALLOWED_TIME_OUT_OF_ZONE_IN_MINUTES = 10
|
|
||||||
ALLOWED_TIME_BETWEEN_POSITION_UPDATE_IN_MINUTES = 10
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Where ADMIN_PASSWORD is the password for the admin user, HOST is the host of the server, PORT is the port of the server, SSL_KEY is the path to the key file and SSL_CERT is the path to the certificate file.
|
Where ADMIN_PASSWORD is the password for the admin user, HOST is the host of the server, PORT is the port of the server, SSL_KEY is the path to the key file and SSL_CERT is the path to the certificate file.
|
||||||
The SSL_KEY and SSL_CERT are used for HTTPS and are required for the server to work. This is because the browser will block the GeoLocation API if the connection is not secure.
|
The SSL_KEY and SSL_CERT are used for HTTPS and are required for the server to work. This is because the browser will block the GeoLocation API if the connection is not secure.
|
||||||
MAX_PENALTIES is the maximum number of penalties a user can have before loosing the game.
|
MAX_PENALTIES is the maximum number of penalties a user can have before loosing the game.
|
||||||
@@ -47,5 +46,5 @@ https://example.com:3000
|
|||||||
```
|
```
|
||||||
|
|
||||||
## Deployment
|
## Deployment
|
||||||
Put your certificate and private key in the traque-back/ssl folder. They need to be named `cert.pem` and `privkey.pem`.
|
Put your certificate and private key in the proxy/ssl folder. They need to be named `cert.pem` and `privkey.pem`.
|
||||||
You can then depploy the docker application with `docker compose up`
|
You can then depploy the docker application with `docker compose up`
|
||||||
|
|||||||
@@ -5,6 +5,4 @@ HOST = '10.192.64.61'
|
|||||||
PORT = 3001
|
PORT = 3001
|
||||||
SSL_KEY = "key.pem"
|
SSL_KEY = "key.pem"
|
||||||
SSL_CERT = "server.crt"
|
SSL_CERT = "server.crt"
|
||||||
ALLOWED_TIME_OUT_OF_ZONE_IN_MINUTES = 0.1
|
|
||||||
ALLOWED_TIME_BETWEEN_POSITION_UPDATE_IN_MINUTES = 1
|
|
||||||
```
|
```
|
||||||
2
traque-back/uploads/.gitignore
vendored
Normal file
2
traque-back/uploads/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
*
|
||||||
|
!.gitignore
|
||||||
Reference in New Issue
Block a user