Merge retry.
This commit is contained in:
81
nginx/sites-available/p3x-gitlist
Normal file
81
nginx/sites-available/p3x-gitlist
Normal file
@@ -0,0 +1,81 @@
|
||||
server {
|
||||
server_name git.sp.renatorosa.com git.renatorosa.com;
|
||||
access_log /var/log/nginx/gitlist.access.log combined;
|
||||
error_log /var/log/nginx/gitlist.error.log error;
|
||||
|
||||
root /var/www/p3x-gitlist/public;
|
||||
index index.php;
|
||||
|
||||
# auth_basic "Restricted";
|
||||
# auth_basic_user_file .htpasswd;
|
||||
|
||||
location = /robots.txt {
|
||||
allow all;
|
||||
log_not_found off;
|
||||
access_log off;
|
||||
}
|
||||
|
||||
|
||||
# location ~ ^.*\.git/(HEAD|info/refs|objects/info/.*|git-(upload|receive)-pack)$ {
|
||||
# root /var/lib/git;
|
||||
|
||||
# fastcgi_pass unix:/var/run/fcgiwrap.socket;
|
||||
# fastcgi_param SCRIPT_FILENAME /usr/lib/git-core/git-http-backend;
|
||||
# fastcgi_param PATH_INFO $uri;
|
||||
# fastcgi_param GIT_PROJECT_ROOT /var/lib/git;
|
||||
# include fastcgi_params;
|
||||
#}
|
||||
|
||||
# send anything else to gitweb if it's not a real file
|
||||
# try_files $uri @gitweb;
|
||||
# location @gitweb {
|
||||
# fastcgi_pass unix:/var/run/fcgiwrap.socket;
|
||||
# fastcgi_param SCRIPT_FILENAME /usr/share/gitweb/gitweb.cgi;
|
||||
# fastcgi_param PATH_INFO $uri;
|
||||
# fastcgi_param GITWEB_CONFIG /etc/nginx/gitweb.conf;
|
||||
include fastcgi_params;
|
||||
# }
|
||||
# }
|
||||
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php$request_uri;
|
||||
}
|
||||
|
||||
location ~* ^/index.php.*$ {
|
||||
###fastcgi_index index.php;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
|
||||
# if you're using php7.2-fpm via socket
|
||||
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
|
||||
|
||||
include snippets/fastcgi-php.conf;
|
||||
}
|
||||
|
||||
# location ~ \.php$ {
|
||||
# include snippets/fastcgi-php.conf;
|
||||
# fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
|
||||
# }
|
||||
#
|
||||
# location ~ /\.ht {
|
||||
# deny all;
|
||||
# }
|
||||
#
|
||||
# location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
|
||||
# add_header Vary "Accept-Encoding";
|
||||
# expires max;
|
||||
# try_files $uri @gitlist;
|
||||
# tcp_nodelay off;
|
||||
# tcp_nopush on;
|
||||
# }
|
||||
#
|
||||
# location ~* \.(git|svn|patch|htaccess|log|route|plist|inc|json|pl|po|sh|ini|sample|kdev4)$ {
|
||||
# deny all;
|
||||
# }
|
||||
|
||||
# location @gitlist {
|
||||
# rewrite ^(/.*)$ /index.php$1;
|
||||
# }
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user