hosts/amahl: enable hidden HTTP service
This commit is contained in:
parent
6c597eed3c
commit
8ca7ec7324
1 changed files with 14 additions and 1 deletions
|
@ -76,11 +76,24 @@
|
|||
(service dhcp-client-service-type
|
||||
(dhcp-client-configuration (interfaces '("eth0"))))
|
||||
|
||||
(service tor-service-type
|
||||
(tor-configuration
|
||||
(hidden-services
|
||||
(list
|
||||
(tor-onion-service-configuration
|
||||
(name "nginx")
|
||||
(mapping '((80 "127.0.0.1:8080"))))))))
|
||||
|
||||
(service nginx-service-type
|
||||
(nginx-configuration
|
||||
(extra-content "autoindex on;")
|
||||
(server-blocks
|
||||
(list (nginx-server-configuration
|
||||
(list
|
||||
(nginx-server-configuration
|
||||
(listen '("127.0.0.1:8080"))
|
||||
(server-name (list "*.onion"))
|
||||
(root (string-append "/srv/http/" domain)))
|
||||
(nginx-server-configuration
|
||||
(listen '("443 ssl"))
|
||||
(server-name (list domain))
|
||||
(ssl-certificate
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue