This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set the servername to match your DNS entry | |
# Use letsenrypt to install a SLL cert | |
server { | |
server_name XXXXXXXX; | |
location / { | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header Host $http_host; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Assuming the domain is planorama.XXXXX.org, change to match the domain you are using | |
# | |
planorama.XXXXX.org { | |
handle_errors { | |
@error50x expression {http.error.status_code} >= 500 && {http.error.status_code} < 600 | |
handle @error50x { | |
rewrite * /opt/planorama/shared/maintenance.html | |
file_server | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<title>Planorama</title> | |
</head> | |
<body> | |
<h1>Oops!</h1> | |
<h2>We're sorry, Planorama is currently down.</h2> | |
<h3>Please check back in a few minutes.</h3> | |
</body> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# The env variables for plano | |
# | |
RAILS_ENV=production | |
RAILS_LOG_TO_STDOUT=true | |
RAILS_LOG_LEVEL=info | |
RAILS_MAX_THREADS=15 | |
DB_POOL=15 | |
### check with IT for DNS hostname |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
cd /opt/planorama/app | |
/usr/bin/docker compose pull && /usr/bin/docker compose down && /usr/bin/docker compose up -d |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# NOTE: | |
# You will need to create the redis-data volumes: | |
# docker volume create --name=redis-data | |
# | |
# NOTE: if you want to run postgres in a container have a look at the staging compose file | |
# you will need to set the links for web and sidekiq accordingling and also set up | |
# an external volume for postgres data | |
# | |
# docker volume create --name=pgdata |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# This is sample docker file for use in a prod environment | |
# | |
# NOTE: You will need to create the persistent volumes: | |
# | |
# docker volume create --name=redis-data | |
# docker volume create --name=pgdata | |
# | |
version: "3.7" |