-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feature/profile
- Loading branch information
Showing
56 changed files
with
3,614 additions
and
890 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Настройки backend | ||
# Общие | ||
SECRET_KEY= | ||
# True - режим разработки | False - для продакшена | ||
DEBUG=True | ||
#Хосты через запятую | ||
ALLOWED_HOSTS=localhost,127.0.0.1, | ||
# True - sqlite | False - PostgeSQL | ||
USE_SQLITE=False | ||
# local - локальные настройки, dev - разработка, prod - продакшн | ||
DJANGO_SETTINGS_MODULE=config.settings.dev | ||
|
||
# Для PostgeSQL | ||
DB_ENGINE=django.db.backends.postgresql | ||
POSTGRES_DB= | ||
POSTGRES_USER= | ||
POSTGRES_PASSWORD= | ||
POSTGRES_HOST= | ||
POSTGRES_PORT= | ||
|
||
# Переменные для работы с docker. | ||
DOCKERHUB_USERNAME_FRONT= | ||
DOCKERHUB_USERNAME= | ||
PROJECT_NAME= |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
FROM nginx:latest | ||
FROM nginx:1.25.4-alpine-slim | ||
COPY nginx.conf /etc/nginx/templates/default.conf.template |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,92 @@ | ||
server { | ||
listen 80; | ||
listen [::]:80; | ||
server_name 89.23.117.80 devcodepet.tw1.ru 89.23.117.168 testcodepet.tw1.ru; | ||
server_name 89.23.117.80 devcodepet.tw1.ru 89.23.117.168 testcodepet.tw1.ru localhost; | ||
server_tokens off; | ||
|
||
root /staticfiles; | ||
|
||
location /api/v1/ { | ||
proxy_set_header Host $http_host; | ||
proxy_pass http://backend:8000/api/v1/; | ||
} | ||
|
||
location /admin/ { | ||
proxy_set_header Host $http_host; | ||
proxy_pass http://backend:8000/admin/; | ||
} | ||
|
||
location /.well-known/acme-challenge/ { | ||
root /certbot/; | ||
} | ||
|
||
location / { | ||
alias /staticfiles/; | ||
index index.html; | ||
try_files $uri $uri/ /index.html; | ||
try_files $uri $uri.html $uri/ =404; | ||
} | ||
error_page 404 /404.html; | ||
location = /404.html { | ||
internal; | ||
} | ||
} | ||
|
||
# server { | ||
# listen 443 default_server ssl http2; | ||
# listen [::]:443 ssl http2; | ||
# server_name 89.23.117.80 devcodepet.tw1.ru; | ||
|
||
# ssl_certificate /etc/nginx/ssl/live/devcodepet.tw1.ru/fullchain.pem; | ||
# ssl_certificate_key /etc/nginx/ssl/live/devcodepet.tw1.ru/privkey.pem; | ||
# include /etc/letsencrypt/options-ssl-nginx.conf; | ||
# ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; | ||
|
||
# root /staticfiles; | ||
|
||
# location /api/v1/ { | ||
# proxy_set_header Host $http_host; | ||
# proxy_pass http://backend:8000/api/v1/; | ||
# } | ||
# location /admin/ { | ||
# proxy_set_header Host $http_host; | ||
# proxy_pass http://backend:8000/admin/; | ||
# } | ||
|
||
# location / { | ||
# try_files $uri $uri.html $uri/ =404; | ||
# } | ||
|
||
# error_page 404 /404.html; | ||
# location = /404.html { | ||
# internal; | ||
# } | ||
# } | ||
|
||
# server { | ||
# listen 443 default_server ssl http2; | ||
# listen [::]:443 ssl http2; | ||
# server_name 89.23.117.168 testcodepet.tw1.ru; | ||
|
||
# ssl_certificate /etc/nginx/ssl/live/testcodepet.tw1.ru/fullchain.pem; | ||
# ssl_certificate_key /etc/nginx/ssl/live/testcodepet.tw1.ru/privkey.pem; | ||
# include /etc/letsencrypt/options-ssl-nginx.conf; | ||
# ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; | ||
|
||
# root /staticfiles; | ||
|
||
# location /api/v1/ { | ||
# proxy_set_header Host $http_host; | ||
# proxy_pass http://backend:8000/api/v1/; | ||
# } | ||
# location /admin/ { | ||
# proxy_set_header Host $http_host; | ||
# proxy_pass http://backend:8000/admin/; | ||
# } | ||
|
||
# location / { | ||
# try_files $uri $uri.html $uri/ =404; | ||
# } | ||
|
||
# error_page 404 /404.html; | ||
# location = /404.html { | ||
# internal; | ||
# } | ||
# } |
Oops, something went wrong.