First commit
This commit is contained in:
42
sites-available/git.eax.app.conf
Normal file
42
sites-available/git.eax.app.conf
Normal file
@@ -0,0 +1,42 @@
|
||||
upstream gitea {
|
||||
server 127.0.0.1:3001 fail_timeout=0;
|
||||
}
|
||||
|
||||
server {
|
||||
#listen 80; # IPv4 HTTP
|
||||
listen 443 ssl http2; # uncomment to enable IPv4 HTTPS + HTTP/2
|
||||
#listen [::]:80; # uncomment to enable IPv6 HTTP
|
||||
#listen [::]:443 ssl http2; # uncomment to enable IPv6 HTTPS + HTTP/2
|
||||
server_name git.eax.app;
|
||||
|
||||
access_log /var/log/gitea/nginx_access.log;
|
||||
error_log /var/log/gitea/nginx_error.log;
|
||||
|
||||
#ssl_certificate ssl/example.com.crt;
|
||||
#ssl_certificate_key ssl/example.com.key;
|
||||
|
||||
ssl_certificate /etc/letsencrypt/live/git.eax.app/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/git.eax.app/privkey.pem;
|
||||
ssl_trusted_certificate /etc/letsencrypt/live/git.eax.app/chain.pem;
|
||||
|
||||
location / {
|
||||
proxy_set_header X-Forwarded-For $remote_addr;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_pass http://gitea;
|
||||
proxy_redirect off;
|
||||
proxy_http_version 1.1;
|
||||
proxy_buffering off;
|
||||
chunked_transfer_encoding off;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name git.eax.app;
|
||||
include nginxconfig.io/letsencrypt.conf;
|
||||
|
||||
location / {
|
||||
return 301 https://git.eax.app$request_uri;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user