File tree 1 file changed +7
-6
lines changed
1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -50,21 +50,20 @@ Open the Nginx configuration file:
50
50
51
51
Add the following configuration. Change YOUR_DOMAIN_NAME with your domain name:
52
52
53
- ``server {
53
+ ``` server {
54
54
listen 80;
55
55
server_name YOUR_DOMAIN_NAME;
56
- return 301 https://$host$request_uri;
57
- }
56
+ return 301 https://$host$request_uri;
57
+ }
58
+
58
59
server {
59
60
listen 443 ssl;
60
61
server_name YOUR_DOMAIN_NAME;
61
-
62
62
ssl_certificate /etc/letsencrypt/live/YOUR_DOMAIN_NAME/fullchain.pem;
63
63
ssl_certificate_key /etc/letsencrypt/live/YOUR_DOMAIN_NAME/privkey.pem;
64
64
include /etc/letsencrypt/options-ssl-nginx.conf;
65
65
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
66
66
67
-
68
67
location / {
69
68
proxy_pass http://localhost:4173;
70
69
proxy_set_header Host $host;
@@ -80,7 +79,9 @@ server {
80
79
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
81
80
proxy_set_header X-Forwarded-Proto $scheme;
82
81
}
83
- }``
82
+ }
83
+ ```
84
+
84
85
85
86
6 . Create a symbolic link to enable the configuration:
86
87
You can’t perform that action at this time.
0 commit comments