Update deployment to single node swarm
This commit is contained in:
parent
3502dcfcb0
commit
58e688b83e
7 changed files with 97 additions and 51 deletions
3
ingress/Dockerfile
Normal file
3
ingress/Dockerfile
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
FROM nginx:alpine
|
||||
|
||||
COPY app.conf /etc/nginx/conf.d/
|
||||
31
ingress/app.conf
Normal file
31
ingress/app.conf
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
server {
|
||||
listen 80;
|
||||
server_name decla.red;
|
||||
server_tokens off;
|
||||
|
||||
location /.well-known/acme-challenge/ {
|
||||
root /var/www/certbot;
|
||||
}
|
||||
|
||||
location / {
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl;
|
||||
server_name decla.red;
|
||||
server_tokens off;
|
||||
|
||||
ssl_certificate /etc/letsencrypt/live/decla.red/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/decla.red/privkey.pem;
|
||||
include /etc/letsencrypt/options-ssl-nginx.conf;
|
||||
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
|
||||
|
||||
location / {
|
||||
proxy_pass http://frontend;
|
||||
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;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue