|
Last change
on this file was 09e02d7, checked in by Nikola Sarafimov <sarafimov.nikola12345@…>, 4 days ago |
|
Final room reservation system implementation
|
-
Property mode
set to
100644
|
|
File size:
486 bytes
|
| Line | |
|---|
| 1 | server {
|
|---|
| 2 | listen 80;
|
|---|
| 3 | server_name localhost;
|
|---|
| 4 |
|
|---|
| 5 | root /usr/share/nginx/html;
|
|---|
| 6 | index index.html;
|
|---|
| 7 |
|
|---|
| 8 | location /api/ {
|
|---|
| 9 | proxy_pass http://backend:8080/api/;
|
|---|
| 10 | proxy_http_version 1.1;
|
|---|
| 11 |
|
|---|
| 12 | proxy_set_header Host $host;
|
|---|
| 13 | proxy_set_header X-Real-IP $remote_addr;
|
|---|
| 14 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|---|
| 15 | proxy_set_header X-Forwarded-Proto $scheme;
|
|---|
| 16 | }
|
|---|
| 17 |
|
|---|
| 18 | location / {
|
|---|
| 19 | try_files $uri $uri/ /index.html;
|
|---|
| 20 | }
|
|---|
| 21 | } |
|---|
Note:
See
TracBrowser
for help on using the repository browser.