6 # is expected even if empty
11 # define content-type headers
13 text/html html htm shtml;
16 text/plain txt sh rst md;
17 application/xhtml+xml xhtml;
22 default_type application/octet_stream;
25 # logging deactivated due to GDPR
26 #access_log /var/log/nginx/access.log;
27 #error_log /var/log/nginx/error.log;
29 # HTTP server: only enforce HTTPS
32 return 301 https://$host$request_uri;
38 server_name REPLACE_fqdn_ECALPER;
39 ssl_certificate /etc/letsencrypt/live/REPLACE_fqdn_ECALPER/fullchain.pem;
40 ssl_certificate_key /etc/letsencrypt/live/REPLACE_fqdn_ECALPER/privkey.pem;
42 index index.html index.htm index.nginx-debian.html;
44 # serve /var/www/public_repos/* for HTTPS git cloning
45 location ~ /repos/clone(/.*) {
46 include fastcgi_params;
47 fastcgi_param SCRIPT_FILENAME /usr/lib/git-core/git-http-backend;
48 fastcgi_param GIT_HTTP_EXPORT_ALL "";
49 fastcgi_param GIT_PROJECT_ROOT /var/public_repos;
50 fastcgi_param PATH_INFO $1;
51 fastcgi_pass unix:/var/run/fcgiwrap.socket;
55 location /repos/static/ {
56 alias /usr/share/gitweb/static/;
59 # gitweb; this needs packages fcgiwrap and gitweb
61 include fastcgi_params;
62 fastcgi_param SCRIPT_FILENAME /usr/share/gitweb/gitweb.cgi;
63 fastcgi_param GITWEB_CONFIG /etc/gitweb.conf;
64 fastcgi_pass unix:/var/run/fcgiwrap.socket;
67 location /irclogs/plomlompomtest/ {