mirror of
https://github.com/YunoHost/vinaigrette.git
synced 2024-09-03 20:06:11 +02:00
Adding rebuildd stuff to nginx conf
This commit is contained in:
parent
07eacebe69
commit
adacefe6e3
1 changed files with 19 additions and 6 deletions
|
@ -3,14 +3,14 @@ server {
|
|||
listen [::]:80;
|
||||
server_name __REPO_URL__;
|
||||
|
||||
access_log /var/log/nginx/repo_access.log;
|
||||
error_log /var/log/nginx/repo_error.log;
|
||||
|
||||
location '/.well-known/acme-challenge' {
|
||||
default_type "text/plain";
|
||||
root /var/www/letsencrypt;
|
||||
}
|
||||
|
||||
# Document root
|
||||
root /var/www/repo/debian;
|
||||
index index.html;
|
||||
location /debian {
|
||||
autoindex on;
|
||||
alias /var/www/repo/debian;
|
||||
|
@ -21,7 +21,20 @@ server {
|
|||
deny all;
|
||||
}
|
||||
|
||||
access_log /var/log/nginx/repo_access.log;
|
||||
error_log /var/log/nginx/repo_error.log;
|
||||
}
|
||||
location / {
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_pass http://localhost:9998/;
|
||||
}
|
||||
|
||||
# entry point for GitHub webhooks
|
||||
#location /hooks/github {
|
||||
# include fastcgi_params;
|
||||
# fastcgi_split_path_info ^((?U)/hooks/github/)(.+)$;
|
||||
# fastcgi_param PATH_INFO /$fastcgi_path_info;
|
||||
# fastcgi_param SCRIPT_NAME "/hooks/github/";
|
||||
# fastcgi_pass 127.0.0.1:9908;
|
||||
#}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue