File tree Expand file tree Collapse file tree 3 files changed +10
-6
lines changed
src/BenchmarksApps/TLS/Nginx Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 1
1
FROM nginx:latest
2
2
3
+ # Define build argument
4
+ ARG SSL_LOGGING_ENABLED=false
5
+
6
+ # Set environment variable from ARG
7
+ ENV SSL_LOGGING_ENABLED=${SSL_LOGGING_ENABLED}
8
+
3
9
# Copy configuration and SSL certificates
4
10
COPY config/nginx.conf /etc/nginx/nginx.conf
5
11
COPY config/cert.pem /etc/nginx/certs/cert.pem
Original file line number Diff line number Diff line change 7
7
'"$http_user_agent" "$http_x_forwarded_for" '
8
8
'[$ssl_protocol] [$ssl_cipher]' ;
9
9
10
- access_log /var/log/nginx/access.log ssl_logs;
10
+ access_log /var/log/nginx/access.log ssl_logs if = $SSL_LOGGING_ENABLED ;
11
11
12
12
server {
13
13
listen 8080 ssl ;
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
- # Log the application start to stdout
3
- echo " $( date) - Application started."
4
-
5
- # Start Nginx
6
- nginx -g " daemon off;"
2
+ export SSL_LOGGING_ENABLED=${SSL_LOGGING_ENABLED}
3
+ echo " $( date) - Application started. Logging: $LOGGING "
4
+ nginx -g " daemon off;" # start nginx
You can’t perform that action at this time.
0 commit comments