summaryrefslogtreecommitdiff
path: root/guix/etc/nginx/sites-enabled/docs-ssl.site
blob: 923d703db9ad4f8b7174b97c286a77da5f0691dc (plain)
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
61
62
63
64
65
66
67
68
69
server {
        listen 443 ssl;
        listen   [::]:443 ssl; ## listen for ipv4; this line is default and implied
 	# 	listen   [::]:80 default_server ipv6only=on; ## listen for ipv6

        # Temporary, as this doesn't do i18n
	root /home/docbuilder/build/docs-landing/;

	# Make site accessible from http://localhost/
	server_name docs.taler.net
	            www.docs.taler.net;

        include conf.d/talerssl;

	location / {
	    autoindex off;
	    ssi off;
#	    ssi_last_modified on;


	    rewrite ^/$ /$index_redirect_uri/ redirect;
	    rewrite ^/(..)/$ /$1/index.html break;
	}


        location /code/exchange {
            alias /home/docbuilder/build/exchange/doxygen;
        }

        location /code/merchant {
            alias /home/docbuilder/build/merchant-backend/doxygen;
        }

        location /onboarding {
            alias /home/docbuilder/build/onboarding/;
        }

        location /bank {
            alias /home/docbuilder/build/bank/manual;
        }

        location /backoffice {
            alias /home/docbuilder/build/backoffice/;
        }

        location /exchange {
            alias /home/docbuilder/build/exchange/manual;
        }

        location /merchant/backend {
            alias /home/docbuilder/build/merchant-backend/manual;
        }

        location /merchant/frontend {
            alias /home/docbuilder/build/merchant-frontend/;
        }

        location /api {
            autoindex off;
            alias /home/docbuilder/build/api/html;
        }

        # Associated to /api route.
        location /_static {
            alias /home/docbuilder/api/html/_static;
        }

        include conf.d/favicon_robots;
}