summaryrefslogtreecommitdiff
path: root/guix/etc/nginx
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2018-10-30 12:28:57 +0100
committerFlorian Dold <florian.dold@gmail.com>2018-10-30 12:28:57 +0100
commit4941911e1acd1de5ac43616b5a407671fb4fd805 (patch)
treed80ab46471db46385b6f6e1fc487d89c582de488 /guix/etc/nginx
parentc34ea81f6585e0ae9902d8fcdb6a9ebbb9a6c57f (diff)
downloaddeployment-4941911e1acd1de5ac43616b5a407671fb4fd805.tar.gz
deployment-4941911e1acd1de5ac43616b5a407671fb4fd805.tar.bz2
deployment-4941911e1acd1de5ac43616b5a407671fb4fd805.zip
nginx config for git, disable cgit for now
Diffstat (limited to 'guix/etc/nginx')
-rw-r--r--guix/etc/nginx/sites-enabled/git-ssl.site52
1 files changed, 9 insertions, 43 deletions
diff --git a/guix/etc/nginx/sites-enabled/git-ssl.site b/guix/etc/nginx/sites-enabled/git-ssl.site
index ae54886..ea7cf0f 100644
--- a/guix/etc/nginx/sites-enabled/git-ssl.site
+++ b/guix/etc/nginx/sites-enabled/git-ssl.site
@@ -1,20 +1,19 @@
server {
- listen 80;
- listen [::]:80; ## listen for ipv4; this line is default and implied
- # listen [::]:80 default_server ipv6only=on; ## listen for ipv6
+ listen 443 ssl;
+ listen [::]:443 ssl; ## listen for ipv4; this line is default and implied
root /srv/git;
- server_name git.taler.net;
+ server_name git.taler.net;
+ include conf.d/talerssl;
- #rewrite ^ https://$server_name$request_uri? permanent;
access_log /var/log/nginx/git.taler.net_access.log;
error_log /var/log/nginx/git.taler.net_error.log notice;
location ~ ^(.*?)\.git/(HEAD|info/refs|objects/.*|git-upload-pack)$ {
include /etc/nginx/fastcgi_params;
- fastcgi_param SCRIPT_FILENAME /run/current-system/profile/libexec/git-core/git-http-backend;
- fastcgi_param GIT_PROJECT_ROOT /home/git/repositories;
- fastcgi_param PATH_INFO $uri;
+ fastcgi_param SCRIPT_FILENAME /run/current-system/profile/libexec/git-core/git-http-backend;
+ fastcgi_param GIT_PROJECT_ROOT /home/git/repositories;
+ fastcgi_param PATH_INFO $uri;
fastcgi_pass unix:/var/run/fcgiwrap.socket;
}
@@ -24,41 +23,8 @@ server {
location / {
include /etc/nginx/fastcgi_params;
- fastcgi_param SCRIPT_FILENAME /run/current-system/profile/lib/cgit.cgi;
- fastcgi_param PATH_INFO $uri;
+ fastcgi_param SCRIPT_FILENAME /run/current-system/profile/lib/cgit.cgi;
+ fastcgi_param PATH_INFO $uri;
fastcgi_pass unix:/var/run/fcgiwrap.socket;
}
}
-
-
-# server {
-# listen 443 ssl;
-# listen [::]:443 ssl; ## listen for ipv4; this line is default and implied
-# # listen [::]:80 default_server ipv6only=on; ## listen for ipv6
-
-# root /srv/git;
-# server_name git.taler.net;
-# include conf.d/talerssl;
-
-# access_log /var/log/nginx/git.taler.net_access.log;
-# error_log /var/log/nginx/git.taler.net_error.log notice;
-
-# location ~ ^(.*?)\.git/(HEAD|info/refs|objects/.*|git-upload-pack)$ {
-# include /etc/nginx/fastcgi_params;
-# fastcgi_param SCRIPT_FILENAME /run/current-system/profile/libexec/git-core/git-http-backend;
-# fastcgi_param GIT_PROJECT_ROOT /home/git/repositories;
-# fastcgi_param PATH_INFO $uri;
-# fastcgi_pass unix:/var/run/fcgiwrap.socket;
-# }
-
-# location /cgit {
-# root /var/www;
-# }
-
-# location / {
-# include /etc/nginx/fastcgi_params;
-# fastcgi_param SCRIPT_FILENAME /run/current-system/profile/lib/cgit.cgi;
-# fastcgi_param PATH_INFO $uri;
-# fastcgi_pass unix:/var/run/fcgiwrap.socket;
-# }
-# }