Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(nginx): Update nginx.conf #64

Merged
merged 1 commit into from
Aug 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 2 additions & 10 deletions nginx.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
user nginx;
pid /var/run/nginx.pid;
worker_processes auto;
worker_processes 4;
worker_rlimit_nofile 65535;

# Load modules
Expand Down Expand Up @@ -37,7 +37,7 @@ http {
server {
listen 80;
listen [::]:80;
server_name negar-frontend.com;
server_name negar-frontend.abriment.com;
# root /var/www/negar-frontend.com/public;
root /usr/share/nginx/html;
index index.html
Expand Down Expand Up @@ -91,12 +91,4 @@ http {
gzip_comp_level 6;
gzip_types text/plain text/css text/xml application/json application/javascript application/rss+xml application/atom+xml image/svg+xml;
}

# subdomains redirect
server {
listen 80;
listen [::]:80;
server_name *.negar-frontend.com;
return 301 http://negar-frontend.com$request_uri;
}
}