Skip to content

Commit

Permalink
Update nginx.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
neozhu authored Nov 26, 2024
1 parent f544c1a commit cd79919
Showing 1 changed file with 25 additions and 14 deletions.
39 changes: 25 additions & 14 deletions src/CleanAspire.ClientApp/nginx.conf
Original file line number Diff line number Diff line change
@@ -1,20 +1,31 @@
server {
listen 80;
listen 443 ssl;
worker_processes auto;

ssl_certificate /etc/ssl/certs/nginx-selfsigned.crt;
ssl_certificate_key /etc/ssl/private/nginx-selfsigned.key;
events {
worker_connections 1024;
}

server_name localhost;
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;

location / {
root /usr/share/nginx/html;
index index.html;
try_files $uri $uri/ /index.html;
}
# Define a server block here
server {
listen 80;
listen 443 ssl;

ssl_certificate /etc/ssl/certs/nginx-selfsigned.crt;
ssl_certificate_key /etc/ssl/private/nginx-selfsigned.key;

server_name localhost;

location / {
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri $uri/ /index.html;
}

error_page 404 /404.html;
location = /404.html {
internal;
error_page 404 /404.html;
location = /40x.html {
}
}
}

0 comments on commit cd79919

Please sign in to comment.