Unify configs, enhance SSL security
This commit is contained in:
29
fet.at/git.conf
Normal file
29
fet.at/git.conf
Normal file
@@ -0,0 +1,29 @@
|
||||
# -*-nginx-*-
|
||||
server {
|
||||
listen 80;
|
||||
server_name git.fet.at;
|
||||
|
||||
location /.well-known {
|
||||
root /srv/pxy/git;
|
||||
allow all;
|
||||
}
|
||||
location / {
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
server_name git.fet.at;
|
||||
|
||||
ssl_certificate /etc/letsencrypt/live/git.fet.at/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/git.fet.at/privkey.pem;
|
||||
ssl_trusted_certificate /etc/letsencrypt/live/git.fet.at/chain.pem;
|
||||
|
||||
include snippets/ssl.conf;
|
||||
include snippets/header.conf;
|
||||
|
||||
location / {
|
||||
proxy_pass http://zyklon:3000;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user