forked from pk910/PoWFaucet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsitecfg-apache2.conf
60 lines (49 loc) · 2.15 KB
/
sitecfg-apache2.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName kiln-faucet.pk910.de
ServerAlias www.kiln-faucet.pk910.de
# Document root of the faucet site (static folder)
DocumentRoot /home/powfaucet/kiln-faucet/static
<Directory /home/powfaucet/kiln-faucet/static/>
Options -Indexes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
# Prefer index.seo.html as index for better search engine results
DirectoryIndex index.seo.html index.html
# Redirect websocket calls (/pow) to nodejs faucet process
RewriteEngine On
RewriteCond %{HTTP:Upgrade} =websocket [NC]
RewriteRule /ws/(.*)$ ws://localhost:8080/ws/$1 [P,L]
RewriteRule /api/(.*)$ http://localhost:8080/api/$1 [P,L]
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access-kiln-faucet.pk910.de.log vhost_combined
ErrorLog ${APACHE_LOG_DIR}/error-kiln-faucet.pk910.de.log
</VirtualHost>
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerAdmin [email protected]
ServerName kiln-faucet.pk910.de
ServerAlias www.kiln-faucet.pk910.de
# Document root of the faucet site (static folder)
DocumentRoot /home/powfaucet/kiln-faucet/static
<Directory /home/powfaucet/kiln-faucet/static/>
Options -Indexes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
# Prefer index.seo.html as index for better search engine results
DirectoryIndex index.seo.html index.html
# Redirect websocket calls (/pow) to nodejs faucet process
RewriteEngine On
RewriteCond %{HTTP:Upgrade} =websocket [NC]
RewriteRule /ws/(.*)$ ws://localhost:8080/ws/$1 [P,L]
RewriteRule /api/(.*)$ http://localhost:8080/api/$1 [P,L]
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access-kiln-faucet.pk910.de.log vhost_combined
ErrorLog ${APACHE_LOG_DIR}/error-kiln-faucet.pk910.de.log
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/kiln-faucet.pk910.de/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/kiln-faucet.pk910.de/privkey.pem
</VirtualHost>
</IfModule>