-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from squeeble-ink/develop
v2.1.0
- Loading branch information
Showing
10 changed files
with
288 additions
and
31 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Deploy Node.js CI - DO-001 | ||
|
||
on: | ||
push: | ||
branches: [develop] | ||
|
||
jobs: | ||
build: | ||
runs-on: [ubuntu-22.04] | ||
|
||
steps: | ||
- name: Deploy development | ||
uses: appleboy/ssh-action@master | ||
with: | ||
host: ${{ secrets.MAIN_IP }} | ||
username: ${{ secrets.GHA_USER }} | ||
key: ${{ secrets.GHA_SSH }} | ||
passphrase: ${{ secrets.GHA_PW }} | ||
script: | | ||
eval `ssh-agent -s` | ||
cd ./_server/${{ vars.REPO_NAME }}/dev/ | ||
rm -rf ./${{ vars.REPO_NAME }} | ||
ssh-add ~/.ssh/${{ secrets.REPO_SSH_NAME }} | ||
git clone git@github.com:squeeble-ink/${{ vars.REPO_NAME }}.git | ||
cd ./${{ vars.REPO_NAME }} | ||
git checkout develop | ||
rm ./nginx/prd.conf | ||
docker compose up dev -d --build |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Deploy Node.js CI - DO-001 | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
|
||
jobs: | ||
build: | ||
runs-on: [ubuntu-22.04] | ||
env: | ||
NODE_ENV: production | ||
|
||
steps: | ||
- name: Deploy production | ||
uses: appleboy/ssh-action@master | ||
with: | ||
host: ${{ secrets.MAIN_IP }} | ||
username: ${{ secrets.GHA_USER }} | ||
key: ${{ secrets.GHA_SSH }} | ||
passphrase: ${{ secrets.GHA_PW }} | ||
script: | | ||
eval `ssh-agent -s` | ||
cd ./_server/${{ vars.REPO_NAME }}/prd/ | ||
rm -rf ./${{ vars.REPO_NAME }} | ||
ssh-add ~/.ssh/${{ secrets.REPO_SSH_NAME }} | ||
git clone git@github.com:squeeble-ink/${{ vars.REPO_NAME }}.git | ||
cd ./${{ vars.REPO_NAME }} | ||
rm ./nginx/dev.conf | ||
docker compose up prd -d --build |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# SE Readme Changelog | ||
|
||
## [[v2.1.0] - 2024/02/19](https://github.com/squeeble-ink/stackexchange.readme-stats/releases/tag/v2.1.0) | ||
|
||
### Added | ||
|
||
- Explanation how to use | ||
- GitHub workflows for deployment | ||
- nginx configuration for deployment | ||
|
||
### Fixed | ||
|
||
- Site name centering | ||
- User name centering | ||
- nameX parameter still works as expected | ||
|
||
### Changed | ||
|
||
- Docker service names to include project name | ||
|
||
## [[v2.0.0] - 2023/04/24](https://github.com/squeeble-ink/stackexchange.readme-stats/releases/tag/v2.0.0) | ||
|
||
### Added | ||
|
||
- Running project stand-alone via Docker | ||
- Created a dev env to run project in development mode | ||
|
||
### Fixed | ||
|
||
- Issue when Stack Exchange API is down OR hitting rate limit | ||
- Issue when User was not found on Stack Exchange site | ||
|
||
|
||
## [[v1.1.1] - 2022/07/10](https://github.com/squeeble-ink/stackexchange.readme-stats/releases/tag/v1.1.1) | ||
|
||
### Fixed | ||
|
||
- Documentation on how to use the API | ||
|
||
## [[v1.1.0] - 2021/01/06](https://github.com/squeeble-ink/stackexchange.readme-stats/releases/tag/v1.1.0) | ||
|
||
### Added | ||
|
||
- Ask Ubuntu website | ||
- Extended SVG with optional | ||
- User name instead of image | ||
- User name outline from left | ||
|
||
## [[v1.0.0] - 2020/09/28](https://github.com/squeeble-ink/stackexchange.readme-stats/releases/tag/v1.0.0) | ||
|
||
### Added | ||
|
||
- Meta Exchange website | ||
- Stack Overflow website | ||
- Shows a SVG with | ||
- Stack Exchange site name | ||
- User profile image | ||
- User score on said Stack Exchange site | ||
- Users badges with dynamic scaling | ||
- Gold | ||
- Silver | ||
- Bronze |
This file contains 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 file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,21 @@ | ||
version: '2' | ||
version: '3' | ||
|
||
services: | ||
dev: | ||
container_name: stack-readme-dev | ||
profiles: ['dev'] | ||
prd: | ||
container_name: stack-readme-prd | ||
build: | ||
context: . | ||
dockerfile: stack-readme-dev.dockerfile | ||
dockerfile: stack-readme-prd.dockerfile | ||
args: | ||
- api_key=${STACK_EXCHANGE_API_KEY} | ||
ports: | ||
- '3040:3040' | ||
prd: | ||
container_name: stack-readme-prd | ||
profiles: ['prd'] | ||
- '3070:3070' | ||
dev: | ||
container_name: stack-readme-dev | ||
build: | ||
context: . | ||
dockerfile: stack-readme-prd.dockerfile | ||
dockerfile: stack-readme-dev.dockerfile | ||
args: | ||
- api_key=${STACK_EXCHANGE_API_KEY} | ||
ports: | ||
- '3344:3344' | ||
- '3071:3071' |
This file contains 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 file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
upstream shackexchange_readme_stats { | ||
server 127.0.0.1:2990; | ||
keepalive 8; | ||
} | ||
|
||
server { | ||
listen 80; | ||
|
||
server_name dev-api.squeeble.ink dev-api.sqbl.me; | ||
|
||
location /se { | ||
proxy_http_version 1.1; | ||
proxy_set_header Upgrade $http_upgrade; | ||
proxy_set_header Connection 'upgrade'; | ||
proxy_set_header Host $host; | ||
proxy_cache_bypass $http_upgrade; | ||
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always; | ||
|
||
proxy_pass http://shackexchange_readme_stats/; | ||
} | ||
} | ||
|
||
server { | ||
listen 443 ssl; | ||
|
||
ssl_certificate /etc/letsencrypt/live/squeeble.ink/fullchain.pem; | ||
ssl_certificate_key /etc/letsencrypt/live/squeeble.ink/privkey.pem; | ||
|
||
server_name dev-api.squeeble.ink; | ||
|
||
access_log /var/log/nginx/shackexchange_readme_stats.log; | ||
|
||
location /se { | ||
proxy_http_version 1.1; | ||
proxy_set_header Upgrade $http_upgrade; | ||
proxy_set_header Connection 'upgrade'; | ||
proxy_set_header Host $host; | ||
proxy_cache_bypass $http_upgrade; | ||
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always; | ||
|
||
proxy_pass http://shackexchange_readme_stats/; | ||
} | ||
} | ||
|
||
server { | ||
listen 443 ssl; | ||
|
||
ssl_certificate /etc/letsencrypt/live/sqbl.me/fullchain.pem; | ||
ssl_certificate_key /etc/letsencrypt/live/sqbl.me/privkey.pem; | ||
|
||
server_name dev-api.sqbl.me; | ||
|
||
access_log /var/log/nginx/shackexchange_readme_stats.log; | ||
|
||
location /se { | ||
proxy_http_version 1.1; | ||
proxy_set_header Upgrade $http_upgrade; | ||
proxy_set_header Connection 'upgrade'; | ||
proxy_set_header Host $host; | ||
proxy_cache_bypass $http_upgrade; | ||
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always; | ||
|
||
proxy_pass http://shackexchange_readme_stats/; | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
upstream shackexchange_readme_stats { | ||
server 127.0.0.1:2990; | ||
keepalive 8; | ||
} | ||
|
||
server { | ||
listen 80; | ||
|
||
server_name api.squeeble.ink api.sqbl.me; | ||
|
||
location /se { | ||
proxy_http_version 1.1; | ||
proxy_set_header Upgrade $http_upgrade; | ||
proxy_set_header Connection 'upgrade'; | ||
proxy_set_header Host $host; | ||
proxy_cache_bypass $http_upgrade; | ||
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always; | ||
|
||
proxy_pass http://shackexchange_readme_stats/; | ||
} | ||
} | ||
|
||
server { | ||
listen 443 ssl; | ||
|
||
ssl_certificate /etc/letsencrypt/live/squeeble.ink/fullchain.pem; | ||
ssl_certificate_key /etc/letsencrypt/live/squeeble.ink/privkey.pem; | ||
|
||
server_name api.squeeble.ink; | ||
|
||
access_log /var/log/nginx/shackexchange_readme_stats.log; | ||
|
||
location /se { | ||
proxy_http_version 1.1; | ||
proxy_set_header Upgrade $http_upgrade; | ||
proxy_set_header Connection 'upgrade'; | ||
proxy_set_header Host $host; | ||
proxy_cache_bypass $http_upgrade; | ||
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always; | ||
|
||
proxy_pass http://shackexchange_readme_stats/; | ||
} | ||
} | ||
|
||
server { | ||
listen 443 ssl; | ||
|
||
ssl_certificate /etc/letsencrypt/live/sqbl.me/fullchain.pem; | ||
ssl_certificate_key /etc/letsencrypt/live/sqbl.me/privkey.pem; | ||
|
||
server_name api.sqbl.me; | ||
|
||
access_log /var/log/nginx/shackexchange_readme_stats.log; | ||
|
||
location /se { | ||
proxy_http_version 1.1; | ||
proxy_set_header Upgrade $http_upgrade; | ||
proxy_set_header Connection 'upgrade'; | ||
proxy_set_header Host $host; | ||
proxy_cache_bypass $http_upgrade; | ||
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always; | ||
|
||
proxy_pass http://shackexchange_readme_stats/; | ||
} | ||
} |
This file contains 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
Oops, something went wrong.