Skip to content

Commit

Permalink
Basic kind devops for public web operation
Browse files Browse the repository at this point in the history
  • Loading branch information
kiriakos committed Feb 5, 2021
1 parent c7bcfe2 commit 89de24d
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 44 deletions.
41 changes: 0 additions & 41 deletions Dockerfile-pu

This file was deleted.

1 change: 1 addition & 0 deletions deploy.sh
2 changes: 1 addition & 1 deletion devops/configure.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh

##
## Configure the main frontend for the container and set the window.backendUrl
Expand Down
5 changes: 3 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ services:
build:
context: .
dockerfile: Dockerfile
ports:
- "42005:80"


volumes:
deb-db:
nix-storage:
bp-storage:
29 changes: 29 additions & 0 deletions wen.pm.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# wen.pm

server {
listen 80;
listen [::]:80;
server_name wen.pm;
return 301 https://wen.pm$request_uri;
}

server {
listen 443 ssl;
listen [::]:443 ssl;
server_name wen.pm;

ssl_certificate /certs/wen.pm/fullchain.pem;
ssl_certificate_key /certs/wen.pm/privkey.pem;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;

location / {
proxy_pass http://127.0.0.1:42005/;

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 X-Forwarded-Proto $scheme;
client_max_body_size 0;
}
}

0 comments on commit 89de24d

Please sign in to comment.