This document has now been incorporated into the uWSGI documentation:
http://uwsgi-docs.readthedocs.org/en/latest/tutorials/Django_and_nginx.html
Steps with explanations to set up a server using:
/* (320x480) iPhone (Original, 3G, 3GS) */ | |
@media only screen and (min-device-width: 320px) and (max-device-width: 480px) { | |
/* insert styles here */ | |
} | |
/* (320x480) Smartphone, Portrait */ | |
@media only screen and (device-width: 320px) and (orientation: portrait) { | |
/* insert styles here */ | |
} | |
server { | |
location / | |
{ | |
include uwsgi_params; | |
uwsgi_pass unix:/tmp/core.socket; | |
if ($request_method = 'OPTIONS') { | |
add_header Access-Control-Allow-Origin *; | |
# | |
# Om nom nom cookies |
# | |
# Slightly tighter CORS config for nginx | |
# | |
# A modification of https://gist.github.com/1064640/ to include a white-list of URLs | |
# | |
# Despite the W3C guidance suggesting that a list of origins can be passed as part of | |
# Access-Control-Allow-Origin headers, several browsers (well, at least Firefox) | |
# don't seem to play nicely with this. | |
# |
server { listen 80; | |
server_name example.com; | |
access_log /var/log/example.com/nginx.access.log; | |
error_log /var/log/example.com/nginx.error.log; | |
root /var/www/apps/example.com/public; | |
charset utf-8; | |
location / { | |
rewrite ^ https://$host$request_uri? permanent; | |
} |
TIPO MATCH COMPETITIVO | |
"type": { | |
"num_teams": 2, | |
"num_players": 5, | |
"_cls": "SingleMatch" | |
}, | |
TIPO DEATHMATCH |
{ | |
"name": "5vs5 Configuration 2017 Mike", | |
"game": "5475f8843207a847e415557c", | |
"mode": "cl", | |
"type": { | |
"num_teams": 2, | |
"num_players": 5, | |
"_cls": "SingleMatch" | |
}, | |
"rounds": [ |
{ | |
"name": "5vs5 Configuration 2017 Mike", | |
"game": "5475f8843207a847e415557c", | |
"mode": "cl", | |
"type": { | |
"num_teams": 2, | |
"num_players": 5, | |
"_cls": "SingleMatch" | |
}, | |
"rounds": [ |
{ | |
"name": "Tournament 4 Teams", | |
"register_mode": "OPEN", | |
"game": "5475f8843207a847e415557c", | |
"region": "577cbd9595369e10448465e1", | |
"config_id": "595e05c866bc5a5ca6b1e3ab", | |
"featured": false, | |
"featured_image": null, | |
"background_image": null, | |
"cover_image": null, |
"pool_config": { | |
"register_fee":15.00, # fee de entrada | |
"only_garantize": false, #eso a tru cuando solo es premio garantizado i no tb el bote acumulado | |
"garantize_prize": 0.00, #cantidad de premio garantizado | |
"register_pot": true, # esto setea si se tiene en cuenta el bote acumulado por entradas o no , | |
"position_type": "m", #por ahora siempre a m = manual | |
"prizes_config": [ | |
{"from_position": 1, "to_position": 1, "type": {"amount": 90.00, "_cls": "PointPrize"}}, # Precio Puntos | |
{"from_position": 2, "to_position": 2, "type": {"amount": 10.00, "_cls": "CashPrize","only_play":false}} # ,Estructura para Dinero , el only_play se stea a true , si se marca la casilla de dinero torneo, esto significa que ese dinero se utiliza solo para registrarse en partidas | |
] |