-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
51 additions
and
1 deletion.
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,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; | ||
|
||
} |
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