nginx-https-cm.yml 533 B

123456789101112131415161718192021222324252627
  1. apiVersion: v1
  2. kind: ConfigMap
  3. metadata:
  4. name: nginx-https-cm
  5. data:
  6. nginx.conf: |
  7. user nginx;
  8. worker_processes 1;
  9. events {
  10. worker_connections 10240;
  11. }
  12. http {
  13. server {
  14. listen 80;
  15. listen 443 ssl;
  16. server_name _;
  17. ssl_certificate /etc/nginx/ssl/server-cert.pem;
  18. ssl_certificate_key /etc/nginx/ssl/server-key.pem;
  19. location / {
  20. root /usr/share/nginx/html;
  21. index index.html index.htm;
  22. }
  23. }
  24. }