install nginx
sudo apt-get update
sudo apt-get -y install nginx
install nginx
sudo apt-get update
sudo apt-get -y install nginx
nginx
server {
listen 80;
listen [::]:80;
index index.html index.htm;
root /usr/share/nginx/html;
server_name restuwahyu-tech.com www.restuwahyu-tech.com;
return 301 https://$host$request_uri;
location / {
proxy_pass http://nodejs:8080;
}
location ~ /.well-known/acme-challenge{
allow all;
root /usr/share/nginx/html;
}
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name restuwahyu-tech.com;
index index.html index.htm;
root /usr/share/nginx/html;
access_log /var/logs/nginx/access;
error_log /var/logs/nginx/error;
ssl_certificate /etc/nginx/ssl/live/restuwahyu-tech.com/fullchain.pem;
ssl_certificate_key /etc/nginx/ssl/live/restuwahyu-tech.com/privkey.pem;
ssl_session_timeout 1d;
ssl_session_cache shared:SSL:10m;
ssl_session_tickets off;
ssl_dhparam /etc/nginx/dhparam/dhparam-2048.pem;
ssl_buffer_size 8k;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_prefer_server_ciphers off;
ssl_ciphers E
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us