Init
This commit is contained in:
commit
e82f35da2a
78 changed files with 10821 additions and 0 deletions
28
backend/templates/gitea_pages.conf
Normal file
28
backend/templates/gitea_pages.conf
Normal file
|
@ -0,0 +1,28 @@
|
|||
map $host $subdomain {
|
||||
~^(?P<sub>.+)\.{{ domain_segments|join("\\.") }}$ $sub;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name *.{{ domain_segments|join(".") }};
|
||||
|
||||
root /var/www/repos/$subdomain;
|
||||
|
||||
location = / {
|
||||
autoindex on;
|
||||
}
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html;
|
||||
index index.html index.htm;
|
||||
|
||||
if (!-e $request_filename) {
|
||||
return 404;
|
||||
}
|
||||
}
|
||||
|
||||
location ~ /\.git {
|
||||
deny all;
|
||||
return 404;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue