Michael Winter 2fefcc09a4 | 6 years ago | |
---|---|---|
bin | 6 years ago | |
etc | 6 years ago | |
external_code_bak | 6 years ago | |
mysql | 6 years ago | |
nginx/conf.d | 6 years ago | |
node_modules | 6 years ago | |
public | 6 years ago | |
restheart/etc | 6 years ago | |
routes | 6 years ago | |
views | 6 years ago | |
.gitignore | 6 years ago | |
Dockerfile | 6 years ago | |
LICENSE | 6 years ago | |
README.md | 6 years ago | |
app.js | 6 years ago | |
docker-compose.yml.template | 6 years ago | |
package-lock.json | 6 years ago | |
package.json | 6 years ago | |
thumbnail_generator_utility.js | 6 years ago |
README.md
unboundedpress
Repo for my personal website.
install ubuntu server 18.04
https://tutorials.ubuntu.com/tutorial/tutorial-install-ubuntu-server#0
update
sudo apt update sudo apt upgrade
install docker and docker-compose
https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-18-04
https://www.digitalocean.com/community/tutorials/how-to-install-docker-compose-on-ubuntu-18-04
enable ufw and set rules
sudo ufw allow 22/tcp sudo ufw allow 80/tcp sudo ufw allow 443/tcp sudo ufw enable
make unboundedpress directory
mkdir unboundedpress cd unboundedpress
pull git repo
change dir name (the git repo is unboundedpress but make it www)
mv ~/unboundedpress/unboundedpress ~/unboundedpress/www
put in sensitive data in all the *.template files and
install everything
docker-compose up -d
NEXTCLOUD
update nextcloud since the dbs were initialized to handle 4-byte characters
docker exec -it mariadb mysql -u root -p set global innodb_file_format=Barracuda; set global innodb_large_prefix=on; ALTER DATABASE nextcloud CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci; exit docker-compose exec --user www-data nextcloud php occ config:system:set mysql.utf8mb4 --type boolean --value="true" docker-compose exec --user www-data nextcloud php occ maintenance:repair
GITEA
install gitea through the web-interface and create and fill in Administrator Account Settings
this might make nginx time out, but that should be ok. It is still running scripts server side
set ROOT_URL in gitea/gitea/app.ini and restart container
ROOT_URL = https://gitea.unboundedpress.org
TODO: change gitea to reroute to /mwinter
TODO: migrate repose from github
UNBOUNDEDPRESS
example of restoring the mongodb
move database backup to unboundedpress/mongodb_backup
docker exec -it mongo bash mongorestore --host localhost --port 27017 -d unboundedpress -u username -p password --authenticationDatabase admin /backup/db_dump_2019_07_12/unboundedpress