update nginx.config to app.nkode.tech
This commit is contained in:
14
nginx.config
14
nginx.config
@@ -1,23 +1,23 @@
|
|||||||
# Redirect all traffic from www.nkode.tech to nkode.tech
|
# Redirect all traffic from www.app.nkode.tech to app.nkode.tech
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name www.nkode.tech;
|
server_name www.app.nkode.tech;
|
||||||
|
|
||||||
return 301 https://nkode.tech$request_uri;
|
return 301 https://app.nkode.tech$request_uri;
|
||||||
}
|
}
|
||||||
|
|
||||||
# Redirect HTTP to HTTPS for nkode.tech
|
# Redirect HTTP to HTTPS for app.nkode.tech
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name nkode.tech;
|
server_name app.nkode.tech;
|
||||||
|
|
||||||
return 301 https://$host$request_uri;
|
return 301 https://$host$request_uri;
|
||||||
}
|
}
|
||||||
|
|
||||||
# Main server block for nkode.tech with SSL and content configuration
|
# Main server block for app.nkode.tech with SSL and content configuration
|
||||||
server {
|
server {
|
||||||
listen 443 ssl http2;
|
listen 443 ssl http2;
|
||||||
server_name nkode.tech;
|
server_name app.nkode.tech;
|
||||||
|
|
||||||
ssl_certificate /etc/letsencrypt/live/nkode.tech/fullchain.pem;
|
ssl_certificate /etc/letsencrypt/live/nkode.tech/fullchain.pem;
|
||||||
ssl_certificate_key /etc/letsencrypt/live/nkode.tech/privkey.pem;
|
ssl_certificate_key /etc/letsencrypt/live/nkode.tech/privkey.pem;
|
||||||
|
|||||||
Reference in New Issue
Block a user