aboutsummaryrefslogtreecommitdiff
path: root/nginx/homepage.conf
diff options
context:
space:
mode:
Diffstat (limited to 'nginx/homepage.conf')
-rw-r--r--nginx/homepage.conf48
1 files changed, 24 insertions, 24 deletions
diff --git a/nginx/homepage.conf b/nginx/homepage.conf
index 57a1d58..261b30a 100644
--- a/nginx/homepage.conf
+++ b/nginx/homepage.conf
@@ -4,9 +4,9 @@ server {
error_page 404 = /404.html;
location = /404.html {
- internal;
- root /var/www/homepage/404.html;
- }
+ internal;
+ root /var/www/homepage/404.html;
+ }
location /interactive {
alias /var/www/interactive/;
@@ -29,27 +29,27 @@ server {
# git server
server {
server_name git.jackjamison.net;
- root /usr/share/cgit;
- try_files $uri @cgit;
-
- location ~ /.+/(info/refs|git-upload-pack) {
- include fastcgi_params;
- fastcgi_param SCRIPT_FILENAME /usr/lib/git-core/git-http-backend;
- fastcgi_param PATH_INFO $uri;
- fastcgi_param GIT_HTTP_EXPORT_ALL 1;
- fastcgi_param GIT_PROJECT_ROOT /var/git;
- fastcgi_param HOME /var/git;
- fastcgi_pass unix:/run/fcgiwrap.socket;
- }
-
- location @cgit {
- include fastcgi_params;
- fastcgi_param SCRIPT_FILENAME /usr/lib/cgit/cgit.cgi;
- fastcgi_param PATH_INFO $uri;
- fastcgi_param QUERY_STRING $args;
- fastcgi_param HTTP_HOST $server_name;
- fastcgi_pass unix:/run/fcgiwrap.socket;
- }
+ root /usr/share/cgit;
+ try_files $uri @cgit;
+
+ location ~ /.+/(info/refs|git-upload-pack) {
+ include fastcgi_params;
+ fastcgi_param SCRIPT_FILENAME /usr/lib/git-core/git-http-backend;
+ fastcgi_param PATH_INFO $uri;
+ fastcgi_param GIT_HTTP_EXPORT_ALL 1;
+ fastcgi_param GIT_PROJECT_ROOT /var/git;
+ fastcgi_param HOME /var/git;
+ fastcgi_pass unix:/run/fcgiwrap.socket;
+ }
+
+ location @cgit {
+ include fastcgi_params;
+ fastcgi_param SCRIPT_FILENAME /usr/lib/cgit/cgit.cgi;
+ fastcgi_param PATH_INFO $uri;
+ fastcgi_param QUERY_STRING $args;
+ fastcgi_param HTTP_HOST $server_name;
+ fastcgi_pass unix:/run/fcgiwrap.socket;
+ }
}
# http redirect