Skip to content

Commit

Permalink
feat(readme)
Browse files Browse the repository at this point in the history
  • Loading branch information
tikrack committed Nov 18, 2024
1 parent a77d6da commit 92efbb8
Show file tree
Hide file tree
Showing 14 changed files with 1,776 additions and 1,852 deletions.
50 changes: 25 additions & 25 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Run and deploy
uses: appleboy/ssh-action@v0.1.9
with:
host: ${{ secrets.SERVER_HOST }}
username: ${{ secrets.SERVER_USERNAME }}
password: ${{ secrets.SERVER_PASSWORD }}
port: ${{ secrets.SERVER_PORT }}
script: |
cd ${{ secrets.SERVER_PATH }}
git fetch --all
git pull
cp index.html fa/
cp index.html en/
on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Run and deploy
uses: appleboy/ssh-action@v0.1.9
with:
host: ${{ secrets.SERVER_HOST }}
username: ${{ secrets.SERVER_USERNAME }}
password: ${{ secrets.SERVER_PASSWORD }}
port: ${{ secrets.SERVER_PORT }}
script: |
cd ${{ secrets.SERVER_PATH }}
git fetch --all
git pull
cp index.html fa/
cp index.html en/
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
fa/index.html
en/index.html
fa/index.html
en/index.html
44 changes: 22 additions & 22 deletions .nginx
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
server {
listen 80;
listen [::]:80;
server_name docs.salamlang.ir;
root /var/www/html/docs.salamlang.ir;
index index.html index.htm;
error_log docs.salamlang.ir.error.log;
access_log docs.salamlang.ir.access.log;
location ~ ^/(fa|en)/ {
try_files $uri $uri/ /index.html?$query_string;
autoindex off;
}
location / {
try_files $uri $uri/ /index.html?$query_string;
}
location ~ /\. {
deny all;
}
add_header X-Frame-Options "SAMEORIGIN";
add_header X-XSS-Protection "1; mode=block";
add_header X-Content-Type-Options "nosniff";
}
server {
listen 80;
listen [::]:80;
server_name docs.salamlang.ir;
root /var/www/html/docs.salamlang.ir;
index index.html index.htm;
error_log docs.salamlang.ir.error.log;
access_log docs.salamlang.ir.access.log;
location ~ ^/(fa|en)/ {
try_files $uri $uri/ /index.html?$query_string;
autoindex off;
}
location / {
try_files $uri $uri/ /index.html?$query_string;
}
location ~ /\. {
deny all;
}
add_header X-Frame-Options "SAMEORIGIN";
add_header X-XSS-Protection "1; mode=block";
add_header X-Content-Type-Options "nosniff";
}
Loading

0 comments on commit 92efbb8

Please sign in to comment.