-
-
Notifications
You must be signed in to change notification settings - Fork 671
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(server): check website hosting in bucket deletion, add error hand…
…le to tasks; (#1017)
- Loading branch information
Showing
10 changed files
with
173 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,65 @@ | ||
|
||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
apiVersion: apisix.apache.org/v2 | ||
kind: ApisixRoute | ||
metadata: | ||
name: laf-web-ingress | ||
spec: | ||
# apisix-ingress-controller is only interested in Ingress | ||
# resources with the matched ingressClass name, in our case, | ||
# it's apisix. | ||
ingressClassName: apisix | ||
rules: | ||
- host: {{ .Values.domain }} | ||
http: | ||
paths: | ||
- backend: | ||
service: | ||
name: laf-web | ||
port: | ||
number: 80 | ||
path: / | ||
pathType: Prefix | ||
- backend: | ||
service: | ||
name: laf-server | ||
port: | ||
number: 3000 | ||
path: /v1/ | ||
pathType: Prefix | ||
http: | ||
- name: laf-web | ||
match: | ||
hosts: | ||
- { { .Values.domain } } | ||
paths: | ||
- /* | ||
backends: | ||
- serviceName: laf-web | ||
servicePort: 80 | ||
plugins: | ||
- name: gzip | ||
enable: true | ||
config: | ||
comp_level: 6 | ||
min_length: 100 | ||
types: | ||
- text/plain | ||
- text/css | ||
- text/html | ||
- text/xml | ||
- text/javascript | ||
- application/json | ||
- application/x-javascript | ||
- application/javascript | ||
- image/bmp | ||
- image/png | ||
- font/ttf | ||
- font/otf | ||
- font/eot | ||
- name: laf-web-api | ||
match: | ||
hosts: | ||
- { { .Values.domain } } | ||
paths: | ||
- /v1/* | ||
backends: | ||
- serviceName: laf-server | ||
servicePort: 3000 | ||
websocket: true | ||
plugins: | ||
- name: gzip | ||
enable: true | ||
config: | ||
comp_level: 6 | ||
min_length: 100 | ||
types: | ||
- text/plain | ||
- text/css | ||
- text/html | ||
- text/xml | ||
- text/javascript | ||
- application/json | ||
- application/x-javascript | ||
- application/javascript | ||
- image/bmp | ||
- image/png | ||
- font/ttf | ||
- font/otf | ||
- font/eot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,36 @@ | ||
--- | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
apiVersion: apisix.apache.org/v2 | ||
kind: ApisixRoute | ||
metadata: | ||
name: oss-ingress | ||
spec: | ||
# apisix-ingress-controller is only interested in Ingress | ||
# resources with the matched ingressClass name, in our case, | ||
# it's apisix. | ||
ingressClassName: apisix | ||
rules: | ||
- host: {{ .Values.domain }} | ||
http: | ||
paths: | ||
- backend: | ||
service: | ||
name: minio | ||
port: | ||
number: 9000 | ||
path: / | ||
pathType: Prefix | ||
http: | ||
- backends: | ||
- serviceName: minio | ||
servicePort: 9000 | ||
match: | ||
hosts: | ||
- {{ .Values.domain }} | ||
paths: | ||
- /* | ||
name: laf-oss | ||
plugins: | ||
- config: | ||
comp_level: 5 | ||
min_length: 1024 | ||
types: | ||
- text/plain | ||
- text/css | ||
- text/html | ||
- text/xml | ||
- text/javascript | ||
- application/json | ||
- application/x-javascript | ||
- application/javascript | ||
- image/bmp | ||
- image/png | ||
- font/ttf | ||
- font/otf | ||
- font/eot | ||
enable: true | ||
name: gzip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters