mirror of
https://github.com/ZwareBear/JFrog-Cloud-Installers.git
synced 2026-01-21 01:06:55 -06:00
Terraform log_format not escaped
NGINX access logs looked like ` - [] "" "" "" ""` before escaping this since nginx needs the literal "$values" but bash was interpreting them.
This commit is contained in:
@@ -126,9 +126,9 @@ cat <<EOF >/etc/nginx/nginx.conf
|
||||
|
||||
include /etc/nginx/conf.d/*.conf;
|
||||
default_type application/octet-stream;
|
||||
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
||||
'$status $body_bytes_sent "$http_referer" '
|
||||
'"$http_user_agent" "$http_x_forwarded_for"';
|
||||
log_format main '\$remote_addr - \$remote_user [\$time_local] "\$request" '
|
||||
'\$status \$body_bytes_sent "\$http_referer" '
|
||||
'"\$http_user_agent" "\$http_x_forwarded_for"';
|
||||
access_log /var/log/nginx/access.log main;
|
||||
sendfile on;
|
||||
#tcp_nopush on;
|
||||
@@ -195,4 +195,4 @@ sed -i -e "s/127.0.0.1/$(curl http://169.254.169.254/latest/meta-data/public-ipv
|
||||
sed -i -e "s/172.25.0.3/$(curl http://169.254.169.254/latest/meta-data/local-ipv4)/" /var/opt/jfrog/artifactory/etc/ha-node.properties
|
||||
chown artifactory:artifactory -R /var/opt/jfrog/artifactory/etc/* && chown artifactory:artifactory -R /var/opt/jfrog/artifactory/* && chown artifactory:artifactory -R /var/opt/jfrog/artifactory/etc/security
|
||||
service artifactory start
|
||||
service nginx start
|
||||
service nginx start
|
||||
|
||||
Reference in New Issue
Block a user