diff --git a/readme.md b/readme.md index dfab33d..1fe4596 100644 --- a/readme.md +++ b/readme.md @@ -48,3 +48,5 @@ https://example.com:3000 ## Deployment 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` + +The reverse proxy is used to get https to the next app on port 3000. \ No newline at end of file diff --git a/traque-back/readme.md b/traque-back/readme.md index 086c451..f44d9df 100644 --- a/traque-back/readme.md +++ b/traque-back/readme.md @@ -1,8 +1,18 @@ # template of the .env file ``` ADMIN_PASSWORD = 'admin password here' -HOST = '10.192.64.61' +HOST = 'traque.rezel.net' PORT = 3001 -SSL_KEY = "key.pem" -SSL_CERT = "server.crt" -``` \ No newline at end of file +SSL_KEY = "../proxy/ssl/privkey.pem" +SSL_CERT = "../proxy/ssl/cert.pem" +``` +# Run dev version +First install the dependencies +``` +npm install +``` +Then run the server +``` +npm start +``` +Make sure an uploads folder is present in the root directory of the backend \ No newline at end of file diff --git a/traque-back/uploads/.gitignore b/traque-back/uploads/.gitignore deleted file mode 100644 index c96a04f..0000000 --- a/traque-back/uploads/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -* -!.gitignore \ No newline at end of file diff --git a/traque-front/readme.md b/traque-front/readme.md index c504ad4..c5e74c4 100644 --- a/traque-front/readme.md +++ b/traque-front/readme.md @@ -1,5 +1,17 @@ # Template of the .env file ``` -NEXT_PUBLIC_SOCKET_HOST = 'quentinrsl.com' +NEXT_PUBLIC_SOCKET_HOST = 'traque.rezel.net' NEXT_PUBLIC_SOCKET_PORT = 3001 +``` + +Where NEXT_PUBLIC_SOCKET_HOST is the host of the socket server and NEXT_PUBLIC_SOCKET_PORT is the port of the socket server. Those values are set by the HOST and PORT env variables in the backend. + +# Run dev version +First install the dependencies +``` +npm install +``` +Then run the server +``` +npm run dev ``` \ No newline at end of file