Skip to content

Commit

Permalink
More sudo, this time for >
Browse files Browse the repository at this point in the history
  • Loading branch information
JanHoefelmeyer committed Aug 8, 2024
1 parent 83e4723 commit a1c6a99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/scripts/TLSConfigsForITest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ echo '
ssl_certificate_key '${SSL_CERTIFICATE_KEY}'; # e.g. ssl_certificate_key /etc/ssl/csaf/testserver-key.pem;
ssl_protocols TLSv1.2 TLSv1.3;
' > ~/${FOLDERNAME}/TLSConfigs.txt
' | sudo tee -a ~/${FOLDERNAME}/TLSConfigs.txt

# a second listener port for testing setup where someone wants to tunnel access
# to an unpriviledged port and still have the same access url
echo '
listen 8443 ssl default_server; # ipv4
listen [::]:8443 ssl http2 default_server; # ipv6
' > ~/${FOLDERNAME}/TLS8443Configs.txt
' | sudo tee -a ~/${FOLDERNAME}/TLS8443Configs.txt

sudo cp $NGINX_CONFIG_PATH $NGINX_CONFIG_PATH.org
sudo sed -i "/^server {/r ${HOME}/${FOLDERNAME}/TLSConfigs.txt" $NGINX_CONFIG_PATH
Expand Down

0 comments on commit a1c6a99

Please sign in to comment.