devtools.nginx.conf 1.23 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11
server {
    listen 80 default_server;
    root /home/gliders/devtools/;

    location / {
        auth_basic "Restricted";
        auth_basic_user_file /home/gliders/devtools/.htpasswd;
        index index.php index.xhtml index.html index.htm index.txt;
        autoindex on;
    }

12 13 14 15
    location /elasticsearch/console {
        proxy_pass http://127.0.0.1:9200/;
    }

Gliders User's avatar
Gliders User committed
16 17 18 19 20
    location /phpma {
        index index.php;
        try_files $uri /phma/index.php?$is_args$args;
    }

21 22 23 24 25 26 27 28 29
    location /phpci {
        index index.php;
        try_files $uri /phpci/public/index.php$is_args$args;
    }

    error_log /var/log/nginx/devtools.error.log;
    access_log off;

    location ~ \.php {
30
        fastcgi_pass phpfcgi;
31 32 33 34 35 36
        fastcgi_buffers 256 4k;
        include fastcgi_params;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_param SCRIPT_NAME $fastcgi_script_name;
        fastcgi_param HTTPS off;
    }
Gliders User's avatar
Gliders User committed
37 38 39 40 41 42 43 44

    location /sentry {
        proxy_pass            http://localhost:9000;
        proxy_redirect        off;
        proxy_set_header      Host              $host;
        proxy_set_header      X-Forwarded-For   $proxy_add_x_forwarded_for;
        proxy_set_header      X-Forwarded-Proto $scheme;
    }
45
}