feat(halo): 增加博客的www的域名与重定向
这个提交包含在:
@@ -0,0 +1,23 @@
|
||||
# 如果检测到www.dev.cm的请求,则重定向到dev.cm
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: halo-static
|
||||
namespace: apps
|
||||
annotations:
|
||||
nginx.ingress.kubernetes.io/configuration-snippet: |
|
||||
rewrite ^/(.*)$ https://dev.cm/$1 permanent;
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: www.dev.cm
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: halo
|
||||
port:
|
||||
number: 80
|
||||
|
||||
在新议题中引用
屏蔽一个用户