35 lines
955 B
Plaintext
35 lines
955 B
Plaintext
#origin git@github.com:ToywheelDev/tools.git
|
|
server {
|
|
listen 80;
|
|
|
|
server_name tools.gamewheel.local tools-debug.gamewheel.local;
|
|
|
|
root /srv/gamewheel.local/tools;
|
|
|
|
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;
|
|
}
|
|
|
|
location / {
|
|
add_header Access-Control-Allow-Origin $http_origin;
|
|
autoindex on;
|
|
try_files $uri $uri/ @node;
|
|
}
|
|
|
|
location @node {
|
|
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:3105;
|
|
proxy_ssl_session_reuse off;
|
|
proxy_set_header Host $http_host;
|
|
proxy_redirect off;
|
|
}
|
|
}
|