r3-config/3d-editor.conf

35 lines
966 B
Plaintext
Raw Normal View History

2016-11-08 12:34:17 +01:00
#origin git@github.com:ToywheelDev/3d_editor.git
2016-10-19 19:32:40 +02:00
server {
listen 80;
2016-11-08 12:34:17 +01:00
2016-10-19 19:32:40 +02:00
server_name 3d-editor.gamewheel.local 3d-editor-debug.gamewheel.local;
2016-11-08 18:30:09 +01:00
root /usr/share/gamewheel/gw_3d_editor;
2016-10-19 19:32:40 +02:00
2016-11-08 12:34:17 +01:00
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9001;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_URL $request_uri;
fastcgi_param SERVER_NAME $http_host;
include fastcgi_params;
}
2016-10-19 19:32:40 +02:00
location / {
add_header Access-Control-Allow-Origin $http_origin;
autoindex on;
try_files $uri $uri/ @node;
}
location @node {
2016-11-08 13:22:18 +01:00
proxy_pass_request_headers on;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-NginX-Proxy true;
proxy_pass http://127.0.0.1:3103;
proxy_ssl_session_reuse off;
proxy_set_header Host $http_host;
proxy_redirect off;
2016-10-19 19:32:40 +02:00
}
}