Update nginx.conf, make aftok host configurable for cli scripts.
[?]
Jun 5, 2020, 5:21 AM
NSRSSSTRMJPPUYQANYDWGI5D3NVM6RQEVZCDUUNQAOL3OWQTD27ACDependencies
- [2]
LLKTCDRDMinor reorg of aftok.com paths. - [3]
GMYPBCWEMake docker-compose work. - [4]
PBD7LZYQPostgres & auth are beginning to function. - [5]
CDHZL3RPAdd a couple of other CLI utilities for interacing with the service. - [6]
E7GQXOIDAllow the use of a local .env file to store username/project ID for UI scripts. - [7]
SPJCFHXWUpdate shell scripts to point to https://aftok.com and prompt for input. - [8]
VRMUVBP6Make log script work on OSX. - [9]
3MERL4JAFix incorrect variable in invitation script. - [10]
XZLSHL4DThe server is now (tenuously) running, and serving pages via SSL! - [11]
UOG5H2TWDefault work logging credit to logged-in user. - [*]
G4BS4NNDAdd simple shell script demonstrating how to invite a companion. - [*]
2G3GNDDUEvent logging is now functioning in postgres.
Change contents
- replacement in deploy/nginx/nginx.conf at line 21
listen 80;return 301 https://$host$request_uri;listen 80 default_server;location / {root /opt/static;index index.html;} - replacement in deploy/nginx/nginx.conf at line 30
listen 443 ssl;listen 443 ssl default_server; - edit in deploy/nginx/nginx.conf at line 39
ssl_prefer_server_ciphers on; - replacement in deploy/nginx/nginx.conf at line 41
access_log /var/log/nginx/jenkins.access.log;access_log /var/log/nginx/access.log; - edit in deploy/nginx/nginx.conf at line 44
root /opt/static;index index.html;}location /api/ { - replacement in deploy/nginx/nginx.conf at line 55
proxy_pass http://aftok-server;proxy_pass http://aftok-server/; - replacement in deploy/nginx/nginx.conf at line 58
proxy_redirect http://aftok-server https://aftok.com;proxy_redirect http://aftok-server https://$host:$server_port/; - edit in docker-compose.yml at line 48
- type: bindsource: ${PWD}/local/db-dumpstarget: /opt/ - edit in scripts/create_project.sh at line 5
fiif [ -z "${AFTOK_HOST}" ]; thenAFTOK_HOST="aftok.com" - replacement in scripts/create_project.sh at line 38
'https://aftok.com/api/projects'"https://$AFTOK_HOST/api/projects" - edit in scripts/create_user.sh at line 2
if [ -f ".env" ]; thensource .envfiif [ -z "${AFTOK_HOST}" ]; thenAFTOK_HOST="aftok.com"fi - replacement in scripts/create_user.sh at line 20
'https://aftok.com/api/register'"https://$AFTOK_HOST/api/register" - edit in scripts/invite.sh at line 5
fiif [ -z "${AFTOK_HOST}" ]; thenAFTOK_HOST="aftok.com" - replacement in scripts/invite.sh at line 27
"https://aftok.com/api/projects/$PID/invite?email=$EMAIL"[4.18]"https://$AFTOK_HOST/api/projects/$PID/invite?email=$EMAIL" - edit in scripts/list_projects.sh at line 5
fiif [ -z "${AFTOK_HOST}" ]; thenAFTOK_HOST="aftok.com" - replacement in scripts/list_projects.sh at line 17
--request GET \"https://aftok.com/api/projects"[4.862]"https://$AFTOK_HOST/api/projects" - edit in scripts/log.sh at line 5
fiif [ -z "${AFTOK_HOST}" ]; thenAFTOK_HOST="aftok.com" - replacement in scripts/log.sh at line 29
"https://aftok.com/api/projects/$PID/logEntries?after=${after}"[4.972]"https://$AFTOK_HOST/api/projects/$PID/logEntries?after=${after}" - edit in scripts/log_end.sh at line 5
fiif [ -z "${AFTOK_HOST}" ]; thenAFTOK_HOST="aftok.com" - replacement in scripts/log_end.sh at line 24
"https://aftok.com/api/projects/$PID/logEnd"[4.1202]"https://$AFTOK_HOST/api/projects/$PID/logEnd" - edit in scripts/log_start.sh at line 5
fiif [ -z "${AFTOK_HOST}" ]; thenAFTOK_HOST="aftok.com" - replacement in scripts/log_start.sh at line 24
"https://aftok.com/api/projects/$PID/logStart"[4.1376]"https://$AFTOK_HOST/api/projects/$PID/logStart"