feat: redirect to .com

This commit is contained in:
saeid_01
2023-06-16 11:06:00 +03:30
parent 9270080d2b
commit 69229ea4d2
3 changed files with 81 additions and 1 deletions
+60
View File
@@ -281,6 +281,53 @@ deployment:
# name: https
# protocol: TCP
worker:
enabled: false
# Additional labels for Deployment worker
additionalLabels:
# key: value
# Annotations on deployments worker
annotations:
# Replicas to be created worker
replicas: 1
# By default deploymentStrategy is set to rollingUpdate with maxSurge of 25% and maxUnavailable of 25%
# You can change type to `Recreate` or can uncomment `rollingUpdate` specification and adjust them to your usage.
strategy:
type: RollingUpdate
# rollingUpdate:
# maxSurge: 25%
# maxUnavailable: 25%
# Additional label added on pod which is used in Service's Label Selector
podLabels:
# env: prod
image: docker.willaspace.com/repository/docker-hosted/external-projects/cssd-back:latest
command:
- /usr/bin/supervisord
- -n
- -c
- /var/www/html/worker.conf
args:
envFrom:
- configMapRef:
name: balout-production-back-configmap
- secretRef:
name: balout-production-back-secret
resources:
limits:
memory: 1Gi
cpu: 1
requests:
memory: 1Gi
cpu: 1
##########################################################
# Add Storage volumes to the pods
##########################################################
@@ -345,6 +392,7 @@ ingress:
# List of host addresses to be exposed by this Ingress
hosts:
- host: cssd-doc.ir
- host: cssd-doc.com
# Additional labels for this Ingress
additionalLabels:
@@ -360,6 +408,9 @@ ingress:
- secretName: cssd-doc-ir-certificate
hosts:
- cssd-doc.ir
- secretName: cssd-doc-com-certificate
hosts:
- cssd-doc.com
##########################################################
# Route object for exposing services (OpenShift)
@@ -520,6 +571,15 @@ configMap:
server {
listen 80;
server_name cssd-doc.ir www.cssd-doc.ir;
return 301 https://cssd-doc.com$request_uri;
}
server {
listen 80;
server_name cssd-doc.com www.cssd-doc.com;
access_log /var/log/nginx/access.log main;
error_log /var/log/nginx/error.log;