]> git.wh0rd.org - tt-rss.git/blame - utils/gitlab-ci/nginx-default
test some basic popup dialogs
[tt-rss.git] / utils / gitlab-ci / nginx-default
CommitLineData
94eedc29
AD
1##\r
2# You should look at the following URL's in order to grasp a solid understanding\r
3# of Nginx configuration files in order to fully unleash the power of Nginx.\r
4# http://wiki.nginx.org/Pitfalls\r
5# http://wiki.nginx.org/QuickStart\r
6# http://wiki.nginx.org/Configuration\r
7#\r
8# Generally, you will want to move this file somewhere, and start with a clean\r
9# file but keep this around for reference. Or just disable in sites-enabled.\r
10#\r
11# Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.\r
12##\r
13\r
14# Default server configuration\r
15#\r
16server {\r
17 listen 80 default_server;\r
18 listen [::]:80 default_server;\r
19\r
20 # SSL configuration\r
21 #\r
22 # listen 443 ssl default_server;\r
23 # listen [::]:443 ssl default_server;\r
24 #\r
25 # Self signed certs generated by the ssl-cert package\r
26 # Don't use them in a production server!\r
27 #\r
28 # include snippets/snakeoil.conf;\r
29\r
30 root /builds/;\r
31\r
32 # Add index.php to the list if you are using PHP\r
33 index index.php index.html index.htm index.nginx-debian.html;\r
34\r
35 server_name _;\r
36\r
37 location / {\r
38 # First attempt to serve request as file, then\r
39 # as directory, then fall back to displaying a 404.\r
40 try_files $uri $uri/ =404;\r
41 autoindex on;\r
42 }\r
43\r
44 # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000\r
45 #\r
46 location ~ \.php$ {\r
47 include snippets/fastcgi-php.conf;\r
48 \r
49 # With php5-cgi alone:\r
50 #fastcgi_pass 127.0.0.1:9000;\r
51 # With php5-fpm:\r
52 fastcgi_pass unix:/var/run/php5-fpm.sock;\r
53 }\r
54\r
55 # deny access to .htaccess files, if Apache's document root\r
56 # concurs with nginx's one\r
57 #\r
58 #location ~ /\.ht {\r
59 # deny all;\r
60 #}\r
61}\r
62\r
63\r
64# Virtual Host configuration for example.com\r
65#\r
66# You can move that to a different file under sites-available/ and symlink that\r
67# to sites-enabled/ to enable it.\r
68#\r
69#server {\r
70# listen 80;\r
71# listen [::]:80;\r
72#\r
73# server_name example.com;\r
74#\r
75# root /var/www/example.com;\r
76# index index.html;\r
77#\r
78# location / {\r
79# try_files $uri $uri/ =404;\r
80# }\r
81#}\r