source: imaps-frontend/nginx.conf@ 79a0317

main
Last change on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago

F4 Finalna Verzija

  • Property mode set to 100644
File size: 664 bytes
RevLine 
[79a0317]1server {
2 listen 443 ssl;
3 server_name imaps.mk www.imaps.mk;
4
5 ssl_certificate /etc/nginx/ssl/fullchain.pem;
6 ssl_certificate_key /etc/nginx/ssl/privkey.pem;
7
8 root /usr/share/nginx/html;
9 index index.html;
10
11 location / {
12 try_files $uri /index.html;
13 }
14
15 location /api/ {
16 proxy_pass http://imaps-backend:8080;
17 proxy_http_version 1.1;
18 proxy_set_header Host $host;
19 proxy_set_header X-Real-IP $remote_addr;
20 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
21 }
22
23 }
24
25server {
26 listen 80;
27 server_name imaps.mk www.imaps.mk;
28
29 return 301 https://$host$request_uri;
30
31}
Note: See TracBrowser for help on using the repository browser.