-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathnginx.conf
112 lines (95 loc) · 4.94 KB
/
nginx.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 80;
absolute_redirect off;
# Docusaurus redirects
rewrite ^/docs/$ /docs permanent;
rewrite ^/docs/(.*)/$ /docs/$1 permanent;
##
# OLD DOC REDIRECTS
# Quick start
rewrite ^/docs/quick-start$ /docs/overview permanent;
rewrite ^/docs/quick-start/600$ /docs/kubernetes/create-a-cluster permanent;
rewrite ^/docs/quick-start/578$ /docs/compute/create-an-instance permanent;
rewrite ^/docs/quick-start/580$ /docs/compute/create-an-instance permanent;
rewrite ^/docs/quick-start/581$ /docs/networking/firewalls permanent;
rewrite ^/docs/quick-start/582$ /docs/networking/private-networks permanent;
rewrite ^/docs/quick-start/583$ /docs/account/ssh-keys permanent;
rewrite ^/docs/quick-start/610$ /docs/overview/civo-cli permanent;
rewrite ^/docs/quick-start/606$ /learn/deploy-your-first-kubernetes-application-through-the-command-line permanent;
rewrite ^/docs/quick-start/609$ /learn/deploying-applications-through-the-civo-kubernetes-marketplace permanent;
rewrite ^/docs/quick-start/604$ /learn/configure-dns permanent;
rewrite ^/docs/quick-start/603$ /docs/networking/firewalls permanent;
rewrite ^/docs/quick-start/602$ /docs/kubernetes/kubernetes-volumes permanent;
rewrite ^/docs/quick-start/608$ /docs/kubernetes/scaling-nodes permanent;
rewrite ^/docs/quick-start/607$ /docs/kubernetes/managing-node-pools permanent;
rewrite ^/docs/quick-start/639$ /learn/kubernetes-https-ingress-controller-with-your-own-tls-certificate permanent;
rewrite ^/docs/quick-start/646$ /docs/kubernetes/load-balancers permanent;
# Terraform
rewrite ^/docs/terraform$ /docs/overview/terraform permanent;
rewrite ^/docs/terraform/595$ /docs/overview/terraform permanent;
rewrite ^/docs/terraform/596$ /docs/compute/create-an-instance permanent;
rewrite ^/docs/terraform/597$ /docs/kubernetes/create-a-cluster permanent;
rewrite ^/docs/terraform/598$ /docs/networking/firewalls permanent;
rewrite ^/docs/terraform/599$ /docs/networking/private-networks permanent;
rewrite ^/docs/terraform/605$ /docs/kubernetes/managing-node-pools permanent;
rewrite ^/docs/terraform/611$ /docs/overview/terraform permanent;
rewrite ^/docs/terraform/612$ /docs/account/ssh-keys permanent;
rewrite ^/docs/terraform/613$ /docs/compute/instance-volumes permanent;
rewrite ^/docs/terraform/662$ /docs/kubernetes/load-balancers permanent;
# CLI
rewrite ^/docs/cli$ /docs/overview/civo-cli permanent;
rewrite ^/docs/cli/616$ /docs/overview/civo-cli permanent;
rewrite ^/docs/cli/617$ /docs/overview/civo-cli permanent;
rewrite ^/docs/cli/620$ /docs/account/api-keys permanent;
rewrite ^/docs/cli/619$ /docs/overview/civo-cli permanent;
rewrite ^/docs/cli/618$ /docs/overview/civo-cli permanent;
rewrite ^/docs/cli/621$ /docs/compute/create-an-instance permanent;
rewrite ^/docs/cli/622$ /docs/kubernetes/create-a-cluster permanent;
rewrite ^/docs/cli/623$ /docs/kubernetes/create-a-cluster permanent;
rewrite ^/docs/cli/624$ /docs/overview/civo-cli permanent;
rewrite ^/docs/cli/625$ /docs/networking/firewalls permanent;
rewrite ^/docs/cli/626$ /docs/networking/private-networks permanent;
rewrite ^/docs/cli/627$ /docs/account/quota permanent;
rewrite ^/docs/cli/628$ /docs/compute/create-an-instance permanent;
rewrite ^/docs/cli/629$ /docs/account/ssh-keys permanent;
rewrite ^/docs/cli/630$ /docs/compute/create-an-instance permanent;
rewrite ^/docs/cli/632$ /docs/compute/instance-volumes permanent;
rewrite ^/docs/cli/633$ /docs/overview/civo-cli permanent;
# Support
rewrite ^/docs/support$ /docs/account/signing-up permanent;
rewrite ^/docs/support/584$ /docs/account/signing-up permanent;
rewrite ^/docs/support/585$ /docs/account/billing permanent;
rewrite ^/docs/support/586$ /docs/account/signing-up permanent;
rewrite ^/docs/support/587$ /docs/account/signing-up permanent;
rewrite ^/docs/support/588$ /docs/account/signing-up permanent;
rewrite ^/docs/support/589$ /docs/account/signing-up permanent;
rewrite ^/docs/support/590$ /docs/account/quota permanent;
rewrite ^/docs/support/591$ /docs/account/signing-up permanent;
rewrite ^/docs/support/592$ /docs/account/api-keys permanent;
# Misc
rewrite ^/docs/article-title$ /docs permanent;
rewrite ^/docs/developer-tools$ /docs permanent;
location / {
if ($request_uri ~ ^/docs/(.*)\.html(\?|$)) {
return 302 /docs/$1;
}
try_files $uri $uri.html $uri/index.html =404;
root /usr/share/nginx/html;
include /etc/nginx/mime.types;
error_page 404 /docs/404.html;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}
}