Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/blazeisclone/og-image-server
Open graph image generator container with NodeJS.
https://github.com/blazeisclone/og-image-server
Last synced: 20 days ago
JSON representation
Open graph image generator container with NodeJS.
- Host: GitHub
- URL: https://github.com/blazeisclone/og-image-server
- Owner: BlazeIsClone
- Created: 2022-05-06T04:37:18.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-05-10T03:54:38.000Z (over 2 years ago)
- Last Synced: 2024-11-02T00:24:59.844Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 36.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Open Graph Image Generator Server
## Install Docker Engine
```bash
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
```## Install Docker-Compose
```bash
sudo curl -L "https://github.com/docker/compose/releases/download/1.26.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo mv /usr/local/bin/docker-compose /usr/bin/docker-compose
sudo chmod +x /usr/bin/docker-compose
```## Setup Virtual Host
### Add Apache config file
```bash
/etc/apache2/sites-available/api.DOMAIN_NAME.com.conf
``````conf
ServerName api.DOMAIN_NAME.TLD
ProxyPreserveHost on
ProxyRequests off
ProxyPass / http://IP_ADDRESS:8080/
ProxyPassReverse / http://IP_ADDRESS:8080/ServerName DOMAIN_NAME.TLD
DocumentRoot /var/www/frontend
ErrorLog ${APACHE_LOG_DIR}/frontend/error.log
CustomLog ${APACHE_LOG_DIR}/frontend/access.log combined```
### Create symlink
```bash
sudo ln -s /etc/apache2/sites-available/api.DOMAIN_NAME.com.conf /etc/apache2/sites-enabled
```### Test config
```bash
sudo apachectl configtest
```### Restart Apache
```bash
sudo service apache2 restart
```
Reference: [How To Set Up Apache Virtual Hosts](https://linuxize.com/post/how-to-set-up-apache-virtual-hosts-on-ubuntu-20-04/#:~:text=A%20Virtual%20Host%20is%20an,SSL%20certificates%2C%20and%20much%20more.)