File tree Expand file tree Collapse file tree 2 files changed +36
-23
lines changed Expand file tree Collapse file tree 2 files changed +36
-23
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ services:
19
19
nginx :
20
20
image : nginx:1.25.4-alpine
21
21
ports :
22
- - " 8083:80 "
22
+ - " 8083:443 "
23
23
volumes :
24
24
- ./nginx.conf:/etc/nginx/nginx.conf
25
25
#
Original file line number Diff line number Diff line change 1
- include /etc/nginx/mime.types ;
1
+ worker_processes 1 ;
2
2
3
- server {
4
- # ipv4
5
- listen 443 ssl;
6
- # ipv6
7
- listen [::]:443 ssl;
8
- server_name ${gh_user}.github.io/${repo_subdir};
3
+ events {
4
+ worker_events 1024;
5
+ }
9
6
10
- types {
11
- application/wasm wasm;
12
- }
7
+ http {
8
+ include /etc/nginx/mime.types;
9
+ default_type application/octet-stream;
10
+ sendfile on ;
11
+ keepalive_timeout 65 ;
12
+ gzip on ;
13
13
14
- # yew-rs frontend
15
- location / {
14
+ server {
15
+ #
16
+ listen 443 ssl; # ipv4
17
+ listen [::]:443 ssl; # ipv6
18
+ server_name ${gh_user}.github.io/${repo_name};
19
+ #
20
+ # yew-rs frontend
16
21
root ./client/dist/index.html;
17
- try_files $uri $uri / ./client/index.html;
18
- include /etc/nginx/mime.types;
19
- default_type application/octet-stream;
20
- }
21
- # SpringBoot backend
22
- location /api {
23
- proxy_pass http://localhost:8080;
24
- proxy_set_header X-Real-IP $remote_addr ;
25
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for ;
26
- proxy_set_header Host $http_host ;
22
+ location / {
23
+ proxy_pass http://
24
+ try_files $uri $uri / ./client/index.html;
25
+ include /etc/nginx/mime.types;
26
+ types {
27
+ application/wasm wasm;
28
+ }
29
+
30
+ default_type application/octet-stream;
31
+ }
32
+ #
33
+ # SpringBoot backend
34
+ location /api {
35
+ proxy_pass http://localhost:8080;
36
+ proxy_set_header X-Real-IP $remote_addr ;
37
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for ;
38
+ proxy_set_header Host $http_host ;
27
39
40
+ }
28
41
}
29
42
}
You can’t perform that action at this time.
0 commit comments