File tree 1 file changed +10
-10
lines changed
posts/running-coder-in-k3s
1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -405,8 +405,8 @@ $ mkdir ~/apachehttp
405
405
406
406
```
407
407
<VirtualHost *:443>
408
- SSLEngine On
409
- SSLProxyEngine on
408
+ SSLEngine On
409
+ SSLProxyEngine on
410
410
411
411
SSLProxyVerify none
412
412
SSLProxyCheckPeerCN off
@@ -424,14 +424,14 @@ $ mkdir ~/apachehttp
424
424
RequestHeader set X-Forwarded-Proto https"
425
425
RequestHeader set X-Forwarded-Port "443"
426
426
427
- # Certificates
427
+ # Certificates
428
428
SSLCertificateFile /ssl/fullchain.pem
429
429
SSLCertificateKeyFile /ssl/privkey.pem
430
430
431
- ServerName *.coder.mydomain.com
431
+ ServerName *.coder.mydomain.com
432
432
433
- ProxyPreserveHost On
434
- ProxyRequests off
433
+ ProxyPreserveHost On
434
+ ProxyRequests off
435
435
ProxyPass / http://k3sserver:8080/ upgrade=any
436
436
ProxyPassReverse / http://k3sserver:8080/
437
437
@@ -441,15 +441,15 @@ $ mkdir ~/apachehttp
441
441
RewriteCond %{HTTP:Upgrade} websocket [NC]
442
442
RewriteRule /(.*) ws://k3sserver:8080/$1 [P,L]
443
443
444
- # Custom log file for SSL
444
+ # Custom log file for SSL
445
445
ErrorLog /var/log/apachehttp/coder/error.log
446
446
CustomLog /var/log/apachehttp/coder/access.log combined
447
447
</VirtualHost>
448
448
449
449
<VirtualHost *:80>
450
- ServerName *.coder.mydomain.com
451
- RewriteEngine On
452
- RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
450
+ ServerName *.coder.mydomain.com
451
+ RewriteEngine On
452
+ RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
453
453
</VirtualHost>
454
454
```
455
455
You can’t perform that action at this time.
0 commit comments