Skip to content

Commit

Permalink
fix: remove extraneous files, add back lost changes after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
mihirsamdarshi committed May 1, 2024
1 parent 4c9dc40 commit 8672b39
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 21 deletions.
58 changes: 38 additions & 20 deletions nginx.conf
Original file line number Diff line number Diff line change
@@ -1,32 +1,50 @@
#worker_processes auto;
#user nginx;

#error_log /var/log/nginx/error.log warn;
#pid /var/run/nginx.pid;

#events {
# worker_connections 1024;
#}
error_log /var/log/nginx/error.log warn;

server {
listen $PORT;
listen 8080;
server_name localhost;

root /usr/share/nginx/html;
index index.html index.htm;

server_tokens off; # Hide Nginx version

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

#auth_basic "Restricted Access";
#auth_basic_user_file /etc/nginx/.htpasswd;
}

# copies data between one FD and other from within the kernel
# faster than read() + write()
sendfile on;

# send headers in one piece, it is better than sending them one by one
tcp_nopush on;

# don't buffer data sent, good for small data bursts in real time
tcp_nodelay on;

# reduce the data that needs to be sent over network -- for testing environment
gzip on;
gzip_vary on;
# gzip_static on;
gzip_min_length 10240;
gzip_comp_level 1;
gzip_vary on;
gzip_disable msie6;
gzip_proxied expired no-cache no-store private auth;
gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/xml;
gzip_disable "MSIE [1-6]\.";
gzip_types
# text/html is always compressed by HttpGzipModule
text/css
text/javascript
text/xml
text/plain
text/x-component
application/javascript
application/x-javascript
application/json
application/xml
application/rss+xml
application/atom+xml
font/truetype
font/opentype
application/vnd.ms-fontobject
image/svg+xml;
}

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
},
"scripts": {
"start": "react-scripts start",
"build": "DISABLE_ESLINT_PLUGIN='true' react-scripts build",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"storybook": "start-storybook -p 9009 -s public",
Expand Down
Binary file not shown.
Binary file not shown.

0 comments on commit 8672b39

Please sign in to comment.