Comments (1)
Hi thinhnd580,
I give you all the stuff
- a Vps on ovh (VPS SSD 1)
- Angular cli 9.0.6
- node.js 12.16.0
- Ubuntu 18.0.4 LTS
- nginx
- letsencrypt for ssl certificate
- the repo https://github.com/ganatan/angular9-app
The nginx.conf below
Don't forget, if you like you star.
worker_processes auto;
events {
worker_connections 768;
}
http {
gzip on;
gzip_http_version 1.1;
gzip_comp_level 5;
gzip_min_length 256;
gzip_proxied any;
gzip_vary on;
gzip_types
application/atom+xml
application/javascript
application/json
application/rss+xml
application/vnd.ms-fontobject
application/x-font-ttf
application/x-web-app-manifest+json
application/xhtml+xml
application/xml
font/opentype
image/svg+xml
image/x-icon
text/css
text/plain
text/x-component;
sendfile on;
server {
if ($host = your_domain.com) {
return 301 https://$host$request_uri;
}
listen 80;
server_name your_domain.com;
return 301 https://www.your_domain.com$request_uri;
}
server {
if ($host = www.your_domain.com) {
return 301 https://$host$request_uri;
}
listen 80;
server_name www.your_domain.com;
return 301 https://www.your_domain.com$request_uri;
}
server {
if ($host = angular.your_domain.com) {
return 301 https://$host$request_uri;
}
listen 80;
server_name angular.your_domain.com;
return 301 https://angular.your_domain.com$request_uri;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name www.your_domain.com;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_certificate /etc/letsencrypt/live/www.your_domain.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/www.your_domain.com/privkey.pem;
location / {
proxy_pass http://127.0.0.1:4000;
}
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name your_domain.com;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_certificate /etc/letsencrypt/live/your_domain.com-0001/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/your_domain.com-0001/privkey.pem;
location / {
proxy_pass http://127.0.0.1:4000;
}
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name angular.your_domain.com;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_certificate /etc/letsencrypt/live/angular.your_domain.com-0002/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/angular.your_domain.com-0002/privkey.pem;
location / {
proxy_pass http://127.0.0.1:4001;
}
}
}
from angular-app.
Related Issues (14)
- No content for crawlers HOT 15
- Could you add i18n with ngx-translate/core ?
- SSR rendering not working for https HOT 3
- Can't change the Local Json setting to use Crud HOT 1
- rien a voir
- Issue - 404
- TransferState and NgRx HOT 1
- I can't get the SSR project live HOT 19
- Mobile Performance
- Maybe this is a bug
- ReferenceError: window is not defined for https://angular.ganatan.com/leaflet
- Specify license
- Deployed app on heroku delay loaded css HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-app.