updated readme, changed cert directory

This commit is contained in:
2024-06-10 18:31:03 +00:00
parent 21e6f31c15
commit 5ce54a8481
6 changed files with 6 additions and 6 deletions

Binary file not shown.

View File

@@ -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
View File

@@ -0,0 +1 @@
ssl/

View File

@@ -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`

View File

@@ -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
View File

@@ -0,0 +1,2 @@
*
!.gitignore