Author SHA1 Message Date
marc 101e0e2dbf upgrade makefile 2022-08-25 21:57:26 +02:00
marc e56fa7b168 update 2022-08-25 21:42:31 +02:00
Valentin Colin a1c5c9d096 Merge branch 'master' into master 2022-08-19 20:30:25 +02:00
marc 9e6ae85f24 localhost 2022-08-19 19:43:23 +02:00
marc 78d567d464 fixing mistake 2022-08-19 19:36:23 +02:00
marc 6f893fea51 secret key does not matter for collecstatic 2022-08-19 19:34:11 +02:00
marc 464bf40786 build 2022-08-19 19:32:57 +02:00
marc 1d0b454e57 static root 2022-08-19 19:31:19 +02:00
Valentin Colin 032f177fe5 Update Pipfile 2022-08-19 19:22:44 +02:00
Valentin Colin 75e917097d Merge pull request #8 from ValentinColin/dependabot/pip/django-4.0.7
Bump django from 4.0.6 to 4.0.7
2022-08-19 19:22:21 +02:00
dependabot[bot] 76933a2c8d Bump django from 4.0.6 to 4.0.7
Bumps [django](https://github.com/django/django) from 4.0.6 to 4.0.7.
- [Release notes](https://github.com/django/django/releases)
- [Commits](https://github.com/django/django/compare/4.0.6...4.0.7)

---
updated-dependencies:
- dependency-name: django
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-19 17:20:36 +00:00
marc ed408edc40 updated requirements 2022-08-19 19:18:31 +02:00
marc b72e767511 localhost is back 2022-08-19 19:16:30 +02:00
Valentin Colin 96c2d83044 Merge pull request #5 from MarcPartensky/update
update and build in makefile
2022-08-19 19:09:32 +02:00
marc d746097ede changed allowed host 2022-08-19 19:05:39 +02:00
marc d4091389bd update 2022-08-19 18:49:19 +02:00
Valentin Colin 99289c7b35 Delete SECURITY.md 2022-08-04 15:34:13 +02:00
Valentin Colin 2eb2a4ac8d Delete CODE_OF_CONDUCT.md 2022-08-04 15:33:04 +02:00
Valentin Colin d933ca0518 Update FUNDING.yml 2022-08-03 13:13:36 +02:00
Valentin Colin 0579a0b1c6 Fix 2022-07-24 10:52:19 +02:00
Valentin Colin 2853b1e33c fix critical alert of django 2022-07-23 08:56:48 +02:00
Valentin Colin 2c131515a2 Merge branch 'master' of github.com:ValentinColin/Website into master 2022-07-23 08:44:58 +02:00
Valentin Colin 3d6aadaceb add workflow labels 2022-07-23 08:44:42 +02:00
marc 184d31aa97 update and build in makefile 2022-05-25 14:53:31 +02:00
Valentin Colin dc81d0d6c2 Merge pull request #4 from MarcPartensky/requirements.txt
requirements.txt
2022-05-25 14:13:58 +02:00
marc 5b5291e850 fail fix 2022-05-25 14:13:33 +02:00
marc b698c344d6 pipfile.lock 2022-05-25 14:13:07 +02:00
marc 9f61da4e09 requirements.txt 2022-05-25 14:11:14 +02:00
Valentin Colin a61f3f29c7 Merge pull request #3 from MarcPartensky/docker-compose-traefik
Docker compose traefik
2022-05-25 14:09:40 +02:00
Valentin Colin a922fd96b2 Merge pull request #2 from MarcPartensky/docker-compose
Docker compose
2022-05-25 14:09:29 +02:00
Valentin Colin ab8d3bd812 Merge pull request #1 from MarcPartensky/marc
pipenv update
2022-05-25 14:09:17 +02:00
marc cff25f8104 traefik dev 2022-05-25 14:05:10 +02:00
marc 733234d53e traefik 2022-05-25 14:04:12 +02:00
marc 72dab60ecb pipenv update 2022-05-25 13:57:30 +02:00
12 changed files with 142 additions and 165 deletions
+25 -2
View File
@@ -1,2 +1,25 @@
custom:
- https://paypal.me/ValentinColin408
# Platform: Syntax:
# LFX Mentorship (formerly CommunityBridge) community_bridge: PROJECT-NAME
# LFX Crowdfunding lfx_crowdfunding: PROJECT-NAME
# GitHub Sponsors (need to be registered) github: USERNAME or github: [USERNAME, USERNAME, USERNAME, USERNAME]
# IssueHunt issuehunt: USERNAME
# Ko-fi ko_fi: USERNAME
# Liberapay liberapay: USERNAME
# Open Collective open_collective: USERNAME
# Otechie otechie: USERNAME
# Patreon patreon: USERNAME
# Tidelift tidelift: PLATFORM-NAME/PACKAGE-NAME
# Custom URL custom: LINK or custom: [LINK, LINK, LINK, LINK]
# For Tidelift, use the platform-name/package-name syntax with the following platform names:
# Language: Platform name:
# JavaScript npm
# Python pypi
# Ruby rubygems
# Java maven
# PHP packagist
# C# nuget
github: ValentinColin
custom:
- https://paypal.me/ValentinColin408
+46
View File
@@ -0,0 +1,46 @@
- name: 'good first issue'
color: '7057FF'
description: 'Good for newcomers'
- name: 'help wanted'
color: '008672'
description: 'Extra attention is needed'
- name: 'type: bug'
color: 'D73A4A'
description: "Something isn't working"
- name: 'type: discussion'
color: 'D4C5F9'
- name: 'type: documention'
color: '006B75'
description: 'Improvements or additions to documentation'
- name: 'type: enhancement'
color: '84B6EB'
description: 'New feature or request'
- name: 'type: feature request'
color: 'FBCA04'
- name: 'type: question'
color: 'D876E3'
description: 'Futher information is requested'
- name: 'priority: critical'
color: 'B60205'
- name: 'priority: high'
color: 'D93F0B'
- name: 'priority: medium'
color: 'FBCA04'
- name: 'priority: low'
color: '0E8A16'
- name: "status: can't reproduce"
color: 'FEC1C1'
- name: 'status: confirmed'
color: '215CEA'
- name: 'status: duplicate'
color: 'CFD3D7'
description: 'This issue or pull request already exists'
- name: 'status: needs information'
color: 'FEF2C0'
description: 'Futher information is needed'
- name: 'status: wont do/fix'
color: 'EEEEEE'
description: 'This will not be worked on'
+25
View File
@@ -0,0 +1,25 @@
name: Label Sync
on:
schedule:
- cron: '0 0 * * *'
push:
branches:
- main
paths:
- '.github/labels.yml'
workflow_dispatch:
jobs:
label-sync:
name: Label sync
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Sync labels
uses: crazy-max/ghaction-github-labeler@v4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
-128
View File
@@ -1,128 +0,0 @@
# Contributor Covenant Code of Conduct
## Our Pledge
We as members, contributors, and leaders pledge to make participation in our
community a harassment-free experience for everyone, regardless of age, body
size, visible or invisible disability, ethnicity, sex characteristics, gender
identity and expression, level of experience, education, socio-economic status,
nationality, personal appearance, race, religion, or sexual identity
and orientation.
We pledge to act and interact in ways that contribute to an open, welcoming,
diverse, inclusive, and healthy community.
## Our Standards
Examples of behavior that contributes to a positive environment for our
community include:
* Demonstrating empathy and kindness toward other people
* Being respectful of differing opinions, viewpoints, and experiences
* Giving and gracefully accepting constructive feedback
* Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
* Focusing on what is best not just for us as individuals, but for the
overall community
Examples of unacceptable behavior include:
* The use of sexualized language or imagery, and sexual attention or
advances of any kind
* Trolling, insulting or derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or email
address, without their explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting
## Enforcement Responsibilities
Community leaders are responsible for clarifying and enforcing our standards of
acceptable behavior and will take appropriate and fair corrective action in
response to any behavior that they deem inappropriate, threatening, offensive,
or harmful.
Community leaders have the right and responsibility to remove, edit, or reject
comments, commits, code, wiki edits, issues, and other contributions that are
not aligned to this Code of Conduct, and will communicate reasons for moderation
decisions when appropriate.
## Scope
This Code of Conduct applies within all community spaces, and also applies when
an individual is officially representing the community in public spaces.
Examples of representing our community include using an official e-mail address,
posting via an official social media account, or acting as an appointed
representative at an online or offline event.
## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement at
valentin.colin78@gmail.com.
All complaints will be reviewed and investigated promptly and fairly.
All community leaders are obligated to respect the privacy and security of the
reporter of any incident.
## Enforcement Guidelines
Community leaders will follow these Community Impact Guidelines in determining
the consequences for any action they deem in violation of this Code of Conduct:
### 1. Correction
**Community Impact**: Use of inappropriate language or other behavior deemed
unprofessional or unwelcome in the community.
**Consequence**: A private, written warning from community leaders, providing
clarity around the nature of the violation and an explanation of why the
behavior was inappropriate. A public apology may be requested.
### 2. Warning
**Community Impact**: A violation through a single incident or series
of actions.
**Consequence**: A warning with consequences for continued behavior. No
interaction with the people involved, including unsolicited interaction with
those enforcing the Code of Conduct, for a specified period of time. This
includes avoiding interactions in community spaces as well as external channels
like social media. Violating these terms may lead to a temporary or
permanent ban.
### 3. Temporary Ban
**Community Impact**: A serious violation of community standards, including
sustained inappropriate behavior.
**Consequence**: A temporary ban from any sort of interaction or public
communication with the community for a specified period of time. No public or
private interaction with the people involved, including unsolicited interaction
with those enforcing the Code of Conduct, is allowed during this period.
Violating these terms may lead to a permanent ban.
### 4. Permanent Ban
**Community Impact**: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behavior, harassment of an
individual, or aggression toward or disparagement of classes of individuals.
**Consequence**: A permanent ban from any sort of public interaction within
the community.
## Attribution
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
version 2.0, available at
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
Community Impact Guidelines were inspired by [Mozilla's code of conduct
enforcement ladder](https://github.com/mozilla/diversity).
[homepage]: https://www.contributor-covenant.org
For answers to common questions about this code of conduct, see the FAQ at
https://www.contributor-covenant.org/faq. Translations are available at
https://www.contributor-covenant.org/translations.
+19 -3
View File
@@ -13,6 +13,11 @@ DOCKER_COMPOSE_DEV := docker-compose-dev.yml
DOCKER_COMPOSE_MARC := docker-compose-marc.yml
DOCKER_COMPOSE_MARC_DEV := docker-compose-marc-dev.yml
### Django
SECRET_KEY := whatever
HOST := localhost
PORT := 9080
###############
### TARGETS ###
###############
@@ -37,9 +42,20 @@ down: ## Run down all servers (production and dev)
docker-compose --file $(DOCKER_COMPOSE_MARC) down
docker-compose --file $(DOCKER_COMPOSE_MARC_DEV) down
local: ## Run server in local without docker
pip install -r requirements.txt
./entrypoint.sh
build: ### Build from the ground up
docker-compose --file $(DOCKER_COMPOSE) build
update:
pipenv update
pipenv lock -r > requirements.txt
SECRET_KEY=$(SECRET_KEY) ./manage.py collectstatic --noinput
dev: ## Run dev server locally without docker
PRODUCTION=false HOST=$(HOST) PORT=$(PORT) SECRET_KEY=$(SECRET_KEY) ./entrypoint.sh
prod: ## Run prod server locally without docker
PRODUCTION=true HOST=$(HOST) PORT=$(PORT) SECRET_KEY=$(SECRET_KEY) ./entrypoint.sh
# Special target help
help: ## Show this help
+1 -1
View File
@@ -4,7 +4,7 @@ verify_ssl = true
name = "pypi"
[packages]
django = "*"
django = ">=4.1"
dotmap = "*"
[dev-packages]
Generated
+10 -10
View File
@@ -1,7 +1,7 @@
{
"_meta": {
"hash": {
"sha256": "93eacbc7402ec06406f5a08501ca90c9340719820ee980550c11b2d4477b1b46"
"sha256": "e13277184f83dc13a43f90e24b9cdae97e9db37c329dc63d76e1e6825d415bfd"
},
"pipfile-spec": 6,
"requires": {
@@ -18,27 +18,27 @@
"default": {
"asgiref": {
"hashes": [
"sha256:2f8abc20f7248433085eda803936d98992f1343ddb022065779f37c5da0181d0",
"sha256:88d59c13d634dcffe0510be048210188edd79aeccb6a6c9028cdad6f31d730a9"
"sha256:1d2880b792ae8757289136f1db2b7b99100ce959b2aa57fd69dab783d05afac4",
"sha256:4a29362a6acebe09bf1d6640db38c1dc3d9217c68e6f9f6204d72667fc19a424"
],
"markers": "python_version >= '3.7'",
"version": "==3.5.0"
"version": "==3.5.2"
},
"django": {
"hashes": [
"sha256:1239218849e922033a35d2a2f777cb8bee18bd725416744074f455f34ff50d0c",
"sha256:77ff2e7050e3324c9b67e29b6707754566f58514112a9ac73310f60cd5261930"
"sha256:031ccb717782f6af83a0063a1957686e87cb4581ea61b47b3e9addf60687989a",
"sha256:032f8a6fc7cf05ccd1214e4a2e21dfcd6a23b9d575c6573cacc8c67828dbe642"
],
"index": "pypi",
"version": "==4.0.3"
"version": "==4.1"
},
"dotmap": {
"hashes": [
"sha256:6644faf2a9161db2f0136d5cc77b877cb1e87c17a46dbe345e5d4fea794fced2",
"sha256:cc87300f3a61d70f2bd18103ea2747dea846a2381a8321f43ce65cbd7afdfe3d"
"sha256:5821a7933f075fb47563417c0e92e0b7c031158b4c9a6a7e56163479b658b368",
"sha256:bd9fa15286ea2ad899a4d1dc2445ed85a1ae884a42effb87c89a6ecce71243c6"
],
"index": "pypi",
"version": "==1.3.26"
"version": "==1.3.30"
},
"sqlparse": {
"hashes": [
-15
View File
@@ -1,15 +0,0 @@
# Security Policy
## Supported Versions
Only the versions tagged `release` are supported.
| Version | Supported |
| ------- | ------------------ |
| > 1.0.0 | :white_check_mark: |
| < 1.0.0 | :x: |
## Reporting a Vulnerability
Please for a critical vulnerability do not create issues. Contact one of the authors of this repository directly, with the tag [SECURITY].
+3 -1
View File
@@ -28,8 +28,8 @@ SECRET_KEY = os.environ["SECRET_KEY"]
DEBUG = os.environ.get("PRODUCTION") != "True"
ALLOWED_HOSTS = [
'0.0.0.0',
'127.0.0.1',
'localhost',
'valentin-colin.fr',
]
@@ -124,6 +124,8 @@ USE_TZ = True
# https://docs.djangoproject.com/en/4.0/howto/static-files/
STATIC_URL = 'static/'
PROJECT_DIR = os.path.dirname(os.path.abspath(__file__))
STATIC_ROOT = os.path.join(PROJECT_DIR, 'staticfiles')
# Default primary key field type
# https://docs.djangoproject.com/en/4.0/ref/settings/#default-auto-field
+5
View File
@@ -17,6 +17,11 @@ services:
labels:
caddy: valentin-colin.fr
caddy.reverse_proxy: "{{upstreams 80}}"
traefik.enable: "true"
traefik.http.routers.valentincolin_website.rule: Host(`valentin-colin.com`)
traefik.http.routers.valentincolin_website.entrypoints: websecure
traefik.http.routers.valentincolin_website.tls.certresolver: tls
traefik.http.services.valentincolin_website.loadbalancer.server.port: 80
networks:
caddy:
+5 -2
View File
@@ -10,13 +10,16 @@ services:
build:
context: ./
dockerfile: Dockerfile
ports:
- "8000:80"
networks:
- caddy
labels:
caddy: valentin-colin.fr
caddy.reverse_proxy: "{{upstreams 80}}"
traefik.enable: "true"
traefik.http.routers.valentincolin_website.rule: Host(`valentin-colin.com`)
traefik.http.routers.valentincolin_website.entrypoints: websecure
traefik.http.routers.valentincolin_website.tls.certresolver: tls
traefik.http.services.valentincolin_website.loadbalancer.server.port: 80
networks:
caddy:
+3 -3
View File
@@ -6,7 +6,7 @@
#
-i https://pypi.org/simple
asgiref==3.5.0; python_version >= '3.7'
django==4.0.3
dotmap==1.3.26
asgiref==3.5.2; python_version >= '3.7'
django==4.1
dotmap==1.3.30
sqlparse==0.4.2; python_version >= '3.5'