init: alpine base git server
This commit is contained in:
25
nginx/conf.d/server/gitea.conf
Normal file
25
nginx/conf.d/server/gitea.conf
Normal file
@ -0,0 +1,25 @@
|
||||
server {
|
||||
listen 443 ssl;
|
||||
server_name git.guzal.cc;
|
||||
|
||||
http2 on;
|
||||
|
||||
ssl_certificate /etc/nginx/certs/ca.cer;
|
||||
ssl_certificate_key /etc/nginx/certs/ca.key;
|
||||
|
||||
client_max_body_size 4096m;
|
||||
|
||||
proxy_connect_timeout 3600;
|
||||
proxy_send_timeout 3600;
|
||||
proxy_read_timeout 3600;
|
||||
|
||||
location ~ .*\.(gif|jpg|png|css|js)(.*) {
|
||||
proxy_pass http://gitea:3000;
|
||||
expires 3d;
|
||||
}
|
||||
|
||||
location / {
|
||||
proxy_pass http://gitea:3000$request_uri;
|
||||
proxy_set_header X-Real-IP $remote_addr; # pass on real client's IP
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user