nginx and favicon done

This commit is contained in:
Adrien Audebert
2024-09-16 20:15:36 +02:00
parent f5c5c5dd7f
commit 39b6f1a17c
7 changed files with 54 additions and 38 deletions

View File

@@ -13,18 +13,6 @@ from pathlib import Path
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
# Force HTTPS by redirecting HTTP traffic to HTTPS
#SECURE_SSL_REDIRECT = True
# Set secure cookie flags to ensure they are only sent over HTTPS
SESSION_COOKIE_SECURE = True
CSRF_COOKIE_SECURE = True
# Enforce HTTP Strict Transport Security (HSTS)
SECURE_HSTS_SECONDS = 31536000 # One year
SECURE_HSTS_INCLUDE_SUBDOMAINS = True
SECURE_HSTS_PRELOAD = True
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/

BIN
pong/static/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View File

@@ -7,9 +7,10 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pong Game</title>
<link rel="stylesheet" type="text/css" href="{% static 'styles.css' %}?v=3">
<div class="logo">
<img src="{% static 'logo-42-perpignan.png' %}" alt="Logo">
</div>
<link rel="icon" type="image/x-icon" href="{% static 'favicon.ico' %}?v=2" >
<div class="logo">
<img src="{% static 'logo-42-perpignan.png' %}" alt="Logo">
</div>
</head>
<body>
<div class="language-switcher">
@@ -204,4 +205,4 @@
<script src="{% static 'language.js' %}"></script>
</body>
</html>
</html>