Commit 8488fececdd07a99e424943b1beb2f9848cab79d
1 parent
8d995f7bdd
Exists in
master
try harder
Showing 2 changed files with 2 additions and 22 deletions Side-by-side Diff
flashcards/models.py
View file @
8488fec
nginxconf/flashy.cards
View file @
8488fec
... | ... | @@ -4,28 +4,6 @@ |
4 | 4 | } |
5 | 5 | |
6 | 6 | server { |
7 | - server_name dev.flashy.cards; | |
8 | - listen 80; | |
9 | - location ^~ /app/ { | |
10 | - alias /srv/flashy-frontend/; | |
11 | - try_files $uri /app/home.html; | |
12 | - } | |
13 | - location ~ /(api|admin|api-auth)/ { | |
14 | - add_header 'Access-Control-Allow-Origin' '*'; | |
15 | - add_header 'Access-Control-Allow-Credentials' 'true'; | |
16 | - add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS, PATCH, PUT'; | |
17 | - add_header 'Access-Control-Allow-Headers' 'DNT,X-CustomHeader,Keep-Alive,User-Agent,Origin,Authorization,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,X-CSRFToken'; | |
18 | - proxy_pass http://backend_production; | |
19 | - proxy_redirect http://backend_production $scheme://flashy.cards; | |
20 | - proxy_set_header Host $host; | |
21 | - proxy_set_header X-Real-IP $remote_addr; | |
22 | - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
23 | - proxy_set_header X-Forwarded-Proto $scheme; | |
24 | - proxy_set_header REMOTE_ADDR $remote_addr; | |
25 | - } | |
26 | -} | |
27 | - | |
28 | -server { | |
29 | 7 | |
30 | 8 | server_name flashy.cards; |
31 | 9 | listen 443 ssl; |