Skip to content

Commit

Permalink
✔ Pindahan ~
Browse files Browse the repository at this point in the history
  • Loading branch information
bifeldy committed Sep 14, 2024
1 parent 796535d commit 18f76ae
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 1 deletion.
50 changes: 50 additions & 0 deletions projects/alt-site/nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
#
# Virtual Host configuration
# FanShare
#
# ln -s /home/bifeldy/www/fansubid/projects/main-site/nginx.conf /home/bifeldy/www/fanshare/nginx.conf
# sudo ln -s /home/bifeldy/www/fanshare/nginx.conf /home/bifeldy/_configs/_nginx/fanshare
#

server {

listen 80;
listen [::]:80;

server_name fanshare.id www.fanshare.id;

if ($host = fanshare.id) {
return 301 $scheme://www.$host$request_uri;
}
return 301 https://$host$request_uri;

}

server {

listen 443 ssl;
listen [::]:443 ssl;

server_name fanshare.id;

ssl_certificate /etc/letsencrypt/live/fanshare.id/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/fanshare.id/privkey.pem;

return 301 $scheme://www.$host$request_uri;

}

server {

listen 443 ssl;
listen [::]:443 ssl;

server_name www.fanshare.id;

ssl_certificate /etc/letsencrypt/live/fanshare.id/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/fanshare.id/privkey.pem;

root /home/bifeldy/www/fansubid/dist/alt-site;
index index.html;

}
2 changes: 1 addition & 1 deletion nginx.conf → projects/main-site/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Virtual Host configuration
# FansubID - Database Fansub Indonesia - NodeJS
#
# sudo ln -s /home/bifeldy/www/fansubid/nginx.conf /home/bifeldy/_configs/_nginx/fansubid
# sudo ln -s /home/bifeldy/www/fansubid/projects/main-site/nginx.conf /home/bifeldy/_configs/_nginx/fansubid
# ln -s /home/bifeldy/www/fansubid/projects/main-site/src/assets /home/bifeldy/www/fansubid/dist/main-site/browser/assets
#

Expand Down

0 comments on commit 18f76ae

Please sign in to comment.