File tree Expand file tree Collapse file tree 3 files changed +14
-11
lines changed Expand file tree Collapse file tree 3 files changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -41,8 +41,8 @@ build {
41
41
" sudo rm -rf /usr/share/nginx/html/*" ,
42
42
" sudo cp -r /opt/app/dist/foundry-angular-example/* /usr/share/nginx/html/" ,
43
43
" sudo cp /opt/app/nginx/nginx.conf /etc/nginx/nginx.conf" ,
44
- " sudo cp /opt/app/nginx/sites-available/* / etc/nginx/conf.d/ " ,
45
- " sudo cp ./ nginx/sites-available/local /etc/nginx/servers/angular.conf"
44
+ " sudo mkdir / etc/nginx/servers " ,
45
+ " sudo cp /opt/app/ nginx/sites-available/aws /etc/nginx/servers/angular.conf" ,
46
46
" sudo systemctl enable nginx" ,
47
47
" sudo systemctl start nginx"
48
48
]
Original file line number Diff line number Diff line change @@ -15,9 +15,15 @@ events {
15
15
16
16
# HTTP block configures web server settings.
17
17
http {
18
+ types_hash_max_size 2048 ;
19
+ types_hash_bucket_size 128;
20
+
18
21
include /etc/nginx/mime.types; # File extensions to MIME types mapping.
19
22
default_type application/octet-stream; # Default MIME type.
20
23
24
+ # Custom servers
25
+ include /etc/nginx/servers/*;
26
+
21
27
# Logging settings.
22
28
log_format main '$remote_addr - $remote_user [$time_local ] "$request " '
23
29
'$status $body_bytes_sent "$http_referer " '
39
45
gzip on ;
40
46
gzip_disable "msie6" ;
41
47
42
- # Include server definitions.
43
- include /etc/nginx/conf.d/*.conf;
44
- include /etc/nginx/sites-enabled/*;
45
48
}
Original file line number Diff line number Diff line change 1
1
server {
2
- listen 80; # Listen on port 80 for HTTP connections.
3
- server_name example.com; # The domain name.
2
+ listen 80;
3
+ server_name localhost;
4
4
5
5
# Root directory and index files.
6
- root /usr/share/nginx/html ;
7
- index index.html index.htm ;
6
+ root /opt/app/dist/foundry-angular-example/browser ;
7
+ index index.html;
8
8
9
9
# Location blocks handle requests for different resources.
10
10
location / {
11
- try_files $uri $uri/ =404; # Serve static files or return a 404 error.
11
+ try_files $uri $uri/ /index.html;
12
12
}
13
13
14
14
location /api/ {
15
- proxy_pass http://backend-server-ip:port ;
15
+ proxy_pass http://10.192.20.146:5001 ;
16
16
proxy_http_version 1.1;
17
17
proxy_set_header Upgrade $http_upgrade;
18
18
proxy_set_header Connection 'upgrade';
You can’t perform that action at this time.
0 commit comments