prod #123

Merged
finley merged 122 commits from prod into master 2025-11-22 17:52:40 -08:00

122 commits

Author SHA1 Message Date
Finley Ghosh 702186000d Merge branch 'prod' of code.springupsoftware.com:cmc/cmc-sales into prod 2025-11-23 12:08:18 +11:00
Finley Ghosh 678e9be2b2 Enabling rclone for db backup, changing to master branch for prod deploy, archiving migration scripts, adding backups/ to gitignore 2025-11-23 12:08:10 +11:00
Karl Cordes 98d5a415a6 Add go vault to the prod docker 2025-11-23 10:39:57 +11:00
Finley Ghosh 5646851ae3 Removing port from postfix 2025-11-23 09:34:34 +11:00
Finley Ghosh f9ea771d46 Removing creds from docker compose 2025-11-23 09:31:16 +11:00
Finley Ghosh 40560f17a5 Fixing 2025-11-23 09:29:21 +11:00
Finley Ghosh 477f9c39d6 referencing .env file 2025-11-23 09:26:51 +11:00
Finley Ghosh 4af8afaece Moving secrets to a .env file for dockerfile 2025-11-23 09:24:47 +11:00
Finley Ghosh 5e36cc304e escaping password 2025-11-23 09:19:02 +11:00
Finley Ghosh d794ded611 Merge branch 'prod' of code.springupsoftware.com:cmc/cmc-sales into prod 2025-11-23 09:14:18 +11:00
Finley Ghosh c4a458c352 Removing run_vault.sh reference 2025-11-23 09:14:08 +11:00
finley 3e9bf95da5 Merge pull request 'Switching to gmail relay' (#122) from migration/go-live into prod
Reviewed-on: cmc/cmc-sales#122
2025-11-22 14:09:49 -08:00
Finley Ghosh 4e769e5591 Cleaning up repo, updating README.md 2025-11-20 23:44:07 +11:00
Finley Ghosh f4cf670684 Switching to gmail relay 2025-11-20 23:26:23 +11:00
Finley Ghosh da4eefdbf6 fix 2025-11-20 23:12:44 +11:00
Finley Ghosh 4ae4ca097a trying again 2025-11-20 23:05:52 +11:00
Finley Ghosh 59c77fcf15 Getting back recipients 2025-11-20 22:55:33 +11:00
Finley Ghosh 96bf160198 Trying to fix email sending 2025-11-20 22:50:02 +11:00
Finley Ghosh f873d51c86 Fixing emails mounts 2025-11-20 21:32:52 +11:00
Finley Ghosh 1837ed2dca fixing dbs 2025-11-20 21:19:24 +11:00
Finley Ghosh 33990fad71 renaming db containers 2025-11-20 21:02:19 +11:00
Finley Ghosh 445b5bf16a Moving to proper databases 2025-11-20 21:02:00 +11:00
Finley Ghosh 277349b528 ugh 2025-11-20 01:19:44 +11:00
Finley Ghosh 1cd6f484cd Adding apache vhost config change 2025-11-20 01:04:54 +11:00
Finley Ghosh a3e0fcf3bb Add go mod tidy 2025-11-20 00:42:29 +11:00
Finley Ghosh d0a20c5529 Changing ports 2025-11-20 00:40:23 +11:00
Finley Ghosh d185f4569b Adding file mounts for stg 2025-11-20 00:33:18 +11:00
Finley Ghosh a08b51ec81 Removing startup scripts from db 2025-11-20 00:22:33 +11:00
Finley Ghosh 64872445c5 Adding files mounts, adding go mod tidy in build 2025-11-20 00:10:42 +11:00
Finley Ghosh 999a208e51 Merge branch 'prod' of code.springupsoftware.com:cmc/cmc-sales into prod 2025-11-19 23:20:53 +11:00
Finley Ghosh e68c6d1f22 moving to new server 2025-11-19 23:20:42 +11:00
Karl Cordes b21ab4a7bf Merge branch 'master' into prod 2025-11-19 07:21:33 +11:00
Finley Ghosh f9c562a85d Removing error when already sent email 2025-09-17 21:23:35 +10:00
Finley Ghosh eecb120a93 Adding install for tz info 2025-09-17 21:18:27 +10:00
Finley Ghosh d42089a3e4 Merge branch 'stg' into prod 2025-09-17 21:12:48 +10:00
Finley Ghosh 161350e218 Fixing networks 2025-09-17 21:09:44 +10:00
Finley Ghosh 4bec2d1356 Adding allowed senders 2025-09-15 22:03:25 +10:00
Finley Ghosh 5674557981 Removing ports for stg 2025-09-15 21:50:43 +10:00
Finley Ghosh 2eef930d75 Changing compose file name 2025-09-15 21:47:56 +10:00
Finley Ghosh 5f9a5b74ee Adding stg network 2025-09-15 21:46:43 +10:00
Finley Ghosh b36ead6237 trying again 2025-09-14 20:59:15 +10:00
Finley Ghosh 0251ffd2d7 fixing postfix forwarding to mailpit 2025-09-14 20:55:19 +10:00
Finley Ghosh 108080b9e0 Adding postfix to the network 2025-09-14 17:49:07 +10:00
Finley Ghosh 0c1c7de5c2 Adding in backup script, removing unnecessary scripts 2025-09-14 17:30:27 +10:00
Finley Ghosh 0d52f483bf Fixing ssh in script, removing external from network 2025-09-14 12:05:48 +10:00
Finley Ghosh 5e825162af Adding sync script, adding mailtpit to both networks, minor container renames 2025-09-14 11:54:41 +10:00
Finley Ghosh e5041ef3a1 Explicitly allowing domains for postfix 2025-09-14 11:30:55 +10:00
Finley Ghosh 1531db26d7 Moving postfix 2025-09-13 22:42:31 +10:00
Finley Ghosh d793f7b6ed Moving everything to postfix relay 2025-09-13 22:40:19 +10:00
Finley Ghosh c54d50d3fc Getting username from basic auth, removing excess logging 2025-09-13 21:27:32 +10:00
Finley Ghosh 32f77e0ae1 Renaming / removing files for ease of deploying between all envs 2025-09-13 21:16:51 +10:00
finley 5d180c10c5 Merge pull request 'prod' (#119) from prod into stg
Reviewed-on: cmc/cmc-sales#119
2025-09-13 01:13:39 -07:00
Finley Ghosh eb130720b9 Updating scripts, changing db dockerfile 2025-09-13 17:53:26 +10:00
Finley Ghosh 8866703a9f Pointing docker compose file to correct nginx 2025-09-13 17:17:23 +10:00
Finley Ghosh 62c44c3fda Updating nginx to point to correct containers 2025-09-13 16:52:10 +10:00
Finley Ghosh c059b38e80 Changing ports 2025-08-22 21:09:16 +10:00
Finley Ghosh 9e1c5e95f0 Changing ports 2025-08-22 20:54:50 +10:00
Finley Ghosh a47d1e9e51 Removing mailpit from prod 2025-08-22 20:37:15 +10:00
Finley Ghosh 161f404129 Adding deploy script 2025-08-22 19:42:54 +10:00
Finley Ghosh b76510accc Attempting to build prod env 2025-08-22 19:38:13 +10:00
Finley Ghosh 2e8855040d Adding rewrite 2025-08-12 21:35:12 +10:00
Finley Ghosh 42aecef5c2 disabling debug mode 2025-08-12 21:30:43 +10:00
Finley Ghosh 68b2a37731 sigh 2025-08-12 21:21:22 +10:00
Finley Ghosh b4fba46f13 Another go 2025-08-12 21:15:49 +10:00
Finley Ghosh 6e15ee90d3 More things to try 2025-08-12 21:13:46 +10:00
Finley Ghosh 409c9aac5b Adding sys libraries 2025-08-12 21:10:54 +10:00
Finley Ghosh 6b801822fd Adding sys libraries 2025-08-12 21:09:21 +10:00
Finley Ghosh 86de417427 Installing common tools for the container 2025-08-12 21:04:51 +10:00
Finley Ghosh d8d361d06c Adding a2enmod headers 2025-08-12 20:57:16 +10:00
Finley Ghosh f2917c11bc Fixing vhost 2025-08-12 20:49:59 +10:00
Finley Ghosh f5a12d6a2d Trying something else again 2025-08-11 17:44:22 +10:00
Finley Ghosh c810163cc6 Changing smtp from 2025-08-11 17:00:59 +10:00
Finley Ghosh 315b1b78e5 Trying with a different image 2025-08-11 16:57:52 +10:00
Finley Ghosh a5bcbcbdeb Fixing smtp records 2025-08-11 16:52:30 +10:00
Finley Ghosh 65273b3816 Removing a2enmod 2025-08-11 16:45:55 +10:00
Finley Ghosh 727301c195 Adding something else 2025-08-11 16:24:44 +10:00
Finley Ghosh fa02bf24e4 trying to disable proxy_fcgi 2025-08-11 16:14:18 +10:00
Finley Ghosh 284a28d9f0 Updating smtp settings 2025-08-11 15:55:09 +10:00
Finley Ghosh dcb5186d89 Enabling debug mode for php 2025-08-11 15:50:32 +10:00
Finley Ghosh b44cbb68d9 Adding in some testing quote checks and logging"
"
2025-08-11 15:48:12 +10:00
Finley Ghosh eea4853a0f Fixing go .env file being incorrect 2025-08-11 15:15:53 +10:00
Finley Ghosh 9cbe9b5177 Adding db dockerfile 2025-08-10 22:38:12 +10:00
Finley Ghosh 47b9e8e709 force update 2025-08-10 22:37:11 +10:00
Finley Ghosh 885c02543f Moving emails, better sync logic 2025-08-10 22:35:26 +10:00
Finley Ghosh 52ac142907 Moving scripts to their own files, adding a basic migration script, marking most sql files for ignore 2025-08-10 19:21:37 +10:00
Finley Ghosh 36e95d36f7 Adding a new migration script 2025-08-10 18:46:35 +10:00
Finley Ghosh 851a1f8ac6 Removing strange mount 2025-08-10 17:14:08 +10:00
Finley Ghosh d8fe1cbac3 Re-enabling the db restore script 2025-08-10 16:56:43 +10:00
Finley Ghosh a9fb2adc92 trying something else 2025-08-10 16:55:02 +10:00
Finley Ghosh 112a0023b2 Removing virtual host block 2025-08-10 12:35:59 +10:00
Finley Ghosh 61d7b54628 Changing vhost 2025-08-10 12:27:00 +10:00
Finley Ghosh 33260df8db Spinning up a db and pointing there 2025-08-10 12:15:28 +10:00
Finley Ghosh 8634d89912 Idk what its doing but lets see 2025-08-10 11:58:25 +10:00
Finley Ghosh 09f2db82f5 Trying a community maintained image 2025-08-10 11:55:12 +10:00
Finley Ghosh ffc5831f51 Allowing apt to use repos without release files 2025-08-10 11:50:10 +10:00
Finley Ghosh a46ca9d0ab Changing apt sources for EOL ubuntu 2025-08-10 11:47:35 +10:00
Finley Ghosh 33795bb47f Chaning stg dockerfile to use ubuntu 16.04, minor changes to use vps4 for staging 2025-08-10 11:45:08 +10:00
Finley Ghosh 3684a81b7c Updating .env to use proper db creds, renaming nginx 2025-07-29 22:35:45 +10:00
Finley Ghosh 9e20068f8c Trying to improve stg 2025-07-29 22:12:04 +10:00
Finley Ghosh e1a3d20332 Changing mounts 2025-07-23 22:50:12 +10:00
Finley Ghosh 761e48ca62 Trying to mount the file dirs 2025-07-23 22:19:21 +10:00
Finley Ghosh c73af8eef1 Removing file sync from script, changing ports 2025-07-23 22:16:27 +10:00
Finley Ghosh 44d444503f Rearranging so db restore happens 2025-07-23 22:02:23 +10:00
Finley Ghosh e834cd325f Adding progress bars 2025-07-23 21:55:10 +10:00
Finley Ghosh 42f84b7b74 Adding some additional logging 2025-07-23 21:52:57 +10:00
Finley Ghosh ea773fbd7c Adding no perms to rsync 2025-07-23 21:39:01 +10:00
Finley Ghosh b8059fbbbb Adding backup restore to the sync script, omitting dir times with rsync 2025-07-23 21:37:02 +10:00
Finley Ghosh 049256025a Adding sync script to the deploy, changing go dockerfile to multi stage 2025-07-23 21:22:50 +10:00
Finley Ghosh 87caa649ed Using staging nginx conf, changing db name 2025-07-23 20:52:43 +10:00
Finley Ghosh b3ce7a1054 Dockerfile changes 2025-07-23 20:44:16 +10:00
Finley Ghosh 5953bfa8d5 Moving to stg nginx conf, moving to staging dockerfile without air 2025-07-23 20:40:54 +10:00
Finley Ghosh 0d440132ca Minor fixes" 2025-07-23 20:17:47 +10:00
Finley Ghosh fac6d0254a Adding stg deploy script 2025-07-23 20:00:06 +10:00
Finley Ghosh eb10de500c Merge branch 'master' into finley/114-quote-reminders 2025-07-23 18:31:24 +10:00
Finley Ghosh 057231a414 Resolving merge conflicts 2025-07-20 18:05:58 +10:00
Finley Ghosh 0b70b2c209 Adding default bccs 2025-07-20 17:18:02 +10:00
Finley Ghosh 2a601df758 Updating the gocron job to run at 8am sydney time each day 2025-07-20 16:53:20 +10:00
Finley Ghosh e4453a56fc Quote reminders finalised in go, adding basic tests 2025-07-20 16:50:09 +10:00
Finley Ghosh 6276167663 Adding reminder cron job for email sending, adding ui to view expiring quotes, adding db refresh script 2025-07-17 23:35:30 +10:00
Finley Ghosh 9fee1677e2 Adding basic quotes expiring page 2025-07-14 23:26:26 +10:00
Finley Ghosh e97be7e261 Adding links between the two environments 2025-07-14 21:37:40 +10:00
Finley Ghosh 4cd67eaf6c Adding go basic layout 2025-07-13 22:50:47 +10:00