- Fixed forgetting to import "showActualGameMessage"
	- Changed filename "launchPrivateChat" to "showPrivateChat.js"
	- Fixed bug on buttons "private" and "game"
Global
	- Reorganize folders
This commit is contained in:
Kum1ta
2024-08-04 23:21:07 +02:00
parent 08151b28ff
commit 28340c159a
33 changed files with 74 additions and 1228 deletions

View File

@ -0,0 +1,42 @@
version: '3'
services:
nginx:
container_name: nginx
volumes:
- djangoserver:/var/www/djangoserver
networks:
- transcendence
depends_on:
- djangoserver
build:
context: requirements/nginx
dockerfile: Dockerfile
ports:
- "443:443"
restart: on-failure
djangoserver:
container_name: djangoserver
volumes:
- djangoserver:/var/www/djangoserver
networks:
- transcendence
build:
context: requirements/djangoserver
dockerfile: Dockerfile
restart: on-failure
expose:
- "9000"
volumes:
djangoserver:
driver: local
driver_opts:
type: 'none'
o: 'bind'
device: '/home/edbernar/data/djangoserver'
networks:
transcendence:
driver: bridge

View File

@ -0,0 +1,18 @@
FROM debian:buster
RUN apt update && apt upgrade -y
RUN apt install -y python
RUN apt install -y python3-pip
RUN pip3 install django
RUN mkdir -p /var/www/djangoserver/
RUN mkdir -p /var/www/djangoserver/static/
COPY file/server /var/www/djangoserver/server
RUN chmod 755 /var/www/djangoserver/
RUN chown -R www-data:www-data /var/www/djangoserver/
WORKDIR /var/www/djangoserver
ENTRYPOINT [ "python", "/var/www/djangoserver/server/main.py" ]

View File

@ -0,0 +1,5 @@
import time
while True:
print("Update")
time.sleep(20)

View File

@ -0,0 +1,6 @@
FROM nginx:latest
RUN mkdir -p /etc/nginx/ssl
RUN apt install -y openssl
RUN openssl req -x509 -nodes -out /etc/nginx/ssl/inception.crt -keyout /etc/nginx/ssl/inception.key -subj "/C=FR/ST=IDF/L=Paris/O=42/OU=42/CN=ptme.com/UID=ptme"
COPY conf/nginx.conf /etc/nginx/nginx.conf

View File

@ -0,0 +1,33 @@
user www-data;
worker_processes auto;
pid /run/nginx.pid;
error_log /var/log/nginx/error.log;
include /etc/nginx/modules-enabled/*.conf;
events {
worker_connections 768;
# multi_accept on;
}
http {
client_max_body_size 2G;
server {
server_name ptme.com;
listen 443 ssl;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_certificate /etc/nginx/ssl/inception.crt;
ssl_certificate_key /etc/nginx/ssl/inception.key;
root /var/www/djangoserver/;
location /static/ {
alias /var/www/djangoserver/static/;
}
location / {
proxy_pass https://127.0.0.1:5000;
}
}
}