diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2464dd9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +./idea diff --git a/.idea/$CACHE_FILE$ b/.idea/$CACHE_FILE$ new file mode 100644 index 0000000..817f158 --- /dev/null +++ b/.idea/$CACHE_FILE$ @@ -0,0 +1,20 @@ + + + + + + + + + + + DocBlocksJoomla! + + + Joomla! + + + + + + \ No newline at end of file diff --git a/.idea/clp-vhost-templates.iml b/.idea/clp-vhost-templates.iml new file mode 100644 index 0000000..c956989 --- /dev/null +++ b/.idea/clp-vhost-templates.iml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..28a804d --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..75eef3b --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000..be7f0ca --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/v1/Nodejs/Nodejs b/v1/Nodejs/Nodejs new file mode 100755 index 0000000..75f29ca --- /dev/null +++ b/v1/Nodejs/Nodejs @@ -0,0 +1,52 @@ +server { + listen 80; + listen [::]:80; + listen 443 ssl http2; + listen [::]:443 ssl http2; + {{ssl_certificate_key}} + {{ssl_certificate}} + {{server_name}} + {{root}} + + {{nginx_access_log}} + {{nginx_error_log}} + + if ($bad_bot = 1) { + return 403; + } + + if ($scheme != "https") { + rewrite ^ https://$host$uri permanent; + } + + location ~ /.well-known { + auth_basic off; + allow all; + } + + {{basic_auth}} + + index index.php index.html; + + location / { + proxy_pass http://127.0.0.1:3000/; + proxy_http_version 1.1; + proxy_set_header X-Forwarded-Host $host; + proxy_set_header X-Forwarded-Server $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header Host $http_host; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "Upgrade"; + proxy_pass_request_headers on; + proxy_max_temp_file_size 0; + proxy_connect_timeout 900; + proxy_send_timeout 900; + proxy_read_timeout 900; + proxy_buffer_size 128k; + proxy_buffers 4 256k; + proxy_busy_buffers_size 256k; + proxy_temp_file_write_size 256k; + } +} \ No newline at end of file