Step 1
If any version of postman is installed we need to remove it
sudo rm -rf /opt/PostmanStep 2
| #!/bin/bash | |
| TEXT_RESET='\e[0m' | |
| TEXT_YELLOW='\e[0;33m' | |
| TEXT_RED_B='\e[1;31m' | |
| sudo apt-get update | |
| echo -e $TEXT_YELLOW | |
| echo 'APT update finished...' | |
| echo -e $TEXT_RESET |
Directories on host machine:
/data/certbot/letsencrypt
/data/certbot/www
Nginx server in docker container
docker run -d --name nginx \
| [Unit] | |
| Description=MySQL Server | |
| After=syslog.target | |
| After=network.target | |
| [Service] | |
| Type=simple | |
| PermissionsStartOnly=true | |
| ExecStartPre=/bin/mkdir -p /var/run/mysqld | |
| ExecStartPre=/bin/chown mysql:mysql -R /var/run/mysqld |
| FROM mongo:6.0-jammy | |
| COPY mongodb.pem /etc/mongodb.pem | |
| COPY mongod.conf /etc/mongod.conf | |
| CMD ["--config", "/etc/mongod.conf"] |
By default when Nginx starts receiving a response from a FastCGI backend (such as PHP-FPM) it will buffer the response in memory before delivering it to the client. Any response larger than the set buffer size is saved to a temporary file on disk.
This process is outlined at the Nginx ngx_http_fastcgi_module page manual page.
| <html> | |
| <head> | |
| <script src="http://localhost:8081/auth/js/keycloak.js" type="text/javascript"> | |
| </script> | |
| </head> | |
| <body> | |
| <h1>js-demo-app</h1> | |
| ### KERNEL TUNING ### | |
| # Increase size of file handles and inode cache | |
| fs.file-max = 2097152 | |
| # Do less swapping | |
| vm.swappiness = 10 | |
| vm.dirty_ratio = 60 | |
| vm.dirty_background_ratio = 2 |
| data "template_file" "inventory" { | |
| template = "${file("inventory.tpl")}" | |
| vars { | |
| backend_ip = "${aws_instance.backend.public_ip}" | |
| frontend_ip = "${aws_instance.frontend.public_ip}" | |
| landing_ip = "${aws_instance.landing.public_ip}" | |
| key_path = "${var.instance_key_path}" | |
| } | |
| } |