-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
=
committed
Jul 6, 2024
1 parent
8df92ed
commit 52131fa
Showing
8 changed files
with
41 additions
and
39 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -18,7 +18,6 @@ if [ "${DEBUG}" = "False" ]; then | |
exec gunicorn fishauctions.asgi:application -k uvicorn.workers.UvicornWorker -w 8 -b 0.0.0.0:8000 | ||
else | ||
echo Starting in development mode, cron jobs must be run manually | ||
python manage.py createsuperuser --username admin --email [email protected] --noinput | ||
uvicorn fishauctions.asgi:application --reload --port 8000 | ||
#python manage.py runserver 0.0.0.0:8000 | ||
#uvicorn fishauctions.asgi:application --reload --port 8000 | ||
python manage.py runserver 0.0.0.0:8000 | ||
fi |
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,22 +1,37 @@ | ||
upstream fishauctions { | ||
server web:8000; | ||
} | ||
# redirect all traffic to https | ||
server { | ||
listen 80 default_server; | ||
listen [::]:80 default_server; | ||
|
||
location / { | ||
return 301 https://$host$request_uri; | ||
} | ||
} | ||
|
||
# main server block | ||
server { | ||
listen 443 ssl http2 default_server; | ||
listen [::]:443 ssl http2 default_server; | ||
|
||
server_name _; | ||
|
||
listen 80; | ||
include /config/nginx/ssl.conf; | ||
|
||
location / { | ||
proxy_pass http://fishauctions; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header Host $host; | ||
proxy_redirect off; | ||
client_max_body_size 20M; | ||
|
||
} | ||
location /static/ { | ||
alias /home/app/web/staticfiles/; | ||
} | ||
location /media/ { | ||
alias /home/app/web/mediafiles/; | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.