summaryrefslogtreecommitdiff
path: root/nginx
diff options
context:
space:
mode:
authorjfederico <jesus@123it.ca>2020-04-25 09:58:29 -0400
committerjfederico <jesus@123it.ca>2020-04-27 22:44:34 -0400
commita6e93f19e3147e2e21d4a838e6e232c9a99f8684 (patch)
tree620036dbe7e93800a8b1140c5b4990275eba45c7 /nginx
parente3683c4abdd6abb055eee83b6d412c2dcf1ac8ff (diff)
downloadscalelite-run-itzks-a6e93f19e3147e2e21d4a838e6e232c9a99f8684.tar.gz
scalelite-run-itzks-a6e93f19e3147e2e21d4a838e6e232c9a99f8684.tar.bz2
scalelite-run-itzks-a6e93f19e3147e2e21d4a838e6e232c9a99f8684.zip
Added new version
Updated init-letsencrypt updated init-letsencrypt with docker-compose-init updated init-letsencrypt with docker-compose-init restored init-letsencrypt updates to certbot updates to certbot updates to certbot updates to certbot updates to certbot updates to certbot updates to certbot added certbot to scalelite-nginx fixed settings for acme-challenge added blacklist updated init-letsencrypt for working with scaleite-nginx Removed unnecessary files percisted certbot logs and added env options to init-letsencrypt
Diffstat (limited to 'nginx')
-rw-r--r--nginx/default/html/index.html25
-rw-r--r--nginx/nginx.conf37
-rw-r--r--nginx/sites.template55
-rw-r--r--nginx/ssl/.placeholder_for_ssl_certificates0
4 files changed, 0 insertions, 117 deletions
diff --git a/nginx/default/html/index.html b/nginx/default/html/index.html
deleted file mode 100644
index 2ca3b95..0000000
--- a/nginx/default/html/index.html
+++ /dev/null
@@ -1,25 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<title>Welcome to nginx!</title>
-<style>
- body {
- width: 35em;
- margin: 0 auto;
- font-family: Tahoma, Verdana, Arial, sans-serif;
- }
-</style>
-</head>
-<body>
-<h1>Welcome to nginx!</h1>
-<p>If you see this page, the nginx web server is successfully installed and
-working. Further configuration is required.</p>
-
-<p>For online documentation and support please refer to
-<a href="http://nginx.org/">nginx.org</a>.<br/>
-Commercial support is available at
-<a href="http://nginx.com/">nginx.com</a>.</p>
-
-<p><em>Thank you for using nginx.</em></p>
-</body>
-</html>
diff --git a/nginx/nginx.conf b/nginx/nginx.conf
deleted file mode 100644
index 981c619..0000000
--- a/nginx/nginx.conf
+++ /dev/null
@@ -1,37 +0,0 @@
-user nginx;
-worker_processes 1;
-
-error_log /var/log/nginx/error.log warn;
-pid /var/run/nginx.pid;
-
-
-events {
- worker_connections 1024;
-}
-
-
-http {
- include /etc/nginx/mime.types;
- 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"';
-
- access_log /var/log/nginx/access.log main;
-
- sendfile on;
- #tcp_nopush on;
-
- keepalive_timeout 65;
-
- #gzip on;
-
- include /etc/nginx/conf.d/*.conf;
-
- ##
- # Virtual Host Configs
- ##
-
- include /etc/nginx/sites-enabled/*;
-}
diff --git a/nginx/sites.template b/nginx/sites.template
deleted file mode 100644
index 29e5366..0000000
--- a/nginx/sites.template
+++ /dev/null
@@ -1,55 +0,0 @@
-#### For <$NGINX_HOSTNAME>
-
-upstream docker-scalelite {
- server scalelite.api:3000;
-}
-
-server {
- server_name $NGINX_HOSTNAME;
-
- listen 80;
- listen [::]:80;
-
- location /.well-known/acme-challenge/ {
- root /var/www/certbot;
- }
-
- location / {
- return 301 https://$host$request_uri;
- }
-}
-
-server {
- server_name $NGINX_HOSTNAME;
-
- listen 443 ssl;
- listen [::]:443;
-
- ## Configuration for Letsencrypt SSL Certificate
- ssl_certificate /etc/letsencrypt/live/$NGINX_HOSTNAME/fullchain.pem;
- ssl_certificate_key /etc/letsencrypt/live/$NGINX_HOSTNAME/privkey.pem;
-
- ## Configuration for SSL Certificate from a CA other than Letsencrypt
- #ssl_certificate /etc/ssl/fullchain.pem;
- #ssl_certificate_key /etc/ssl/privkey.pem;
-
- location / {
- proxy_pass http://docker-scalelite;
- proxy_read_timeout 60s;
- proxy_redirect off;
-
- proxy_set_header Host $http_host;
-
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header Cookie "$http_cookie; ip=$remote_addr";
-
- proxy_set_header X-Forwarded-Proto $scheme;
-
- proxy_http_version 1.1;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection "upgrade";
-
- rewrite ~/(.*)$ /$1 break;
- }
-}
diff --git a/nginx/ssl/.placeholder_for_ssl_certificates b/nginx/ssl/.placeholder_for_ssl_certificates
deleted file mode 100644
index e69de29..0000000
--- a/nginx/ssl/.placeholder_for_ssl_certificates
+++ /dev/null