Skip to content

Commit bd6f01e

Browse files
committed
Add nginx config
1 parent 02df060 commit bd6f01e

File tree

1 file changed

+39
-0
lines changed
  • etc/nginx/sites-available

1 file changed

+39
-0
lines changed

etc/nginx/sites-available/vlc-qt

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
server {
2+
listen 80;
3+
listen [::]:80;
4+
server_name vlc-qt.tano.si;
5+
6+
include /etc/nginx/snippets/letsencrypt.conf;
7+
8+
location / {
9+
return 301 https://$server_name$request_uri;
10+
}
11+
12+
access_log /var/log/nginx/vlc-qt.access.log;
13+
error_log /var/log/nginx/vlc-qt.error.log;
14+
}
15+
16+
server {
17+
listen 443 ssl http2;
18+
listen [::]:443 ssl http2;
19+
server_name vlc-qt.tano.si;
20+
21+
root /var/www/vlc-qt;
22+
index index.html;
23+
24+
include /etc/nginx/snippets/ssl.conf;
25+
26+
location / {
27+
try_files $uri $uri/ =404;
28+
}
29+
30+
location /reference/git/ {
31+
alias /var/www/vlc-qt_gitreference/;
32+
}
33+
34+
include /etc/nginx/snippets/error_pages.conf;
35+
include /etc/nginx/snippets/jekyll.conf;
36+
37+
access_log /var/log/nginx/vlc-qt.access.log;
38+
error_log /var/log/nginx/vlc-qt.error.log;
39+
}

0 commit comments

Comments
 (0)