2019-05-06 09:37:34 +02:00
|
|
|
# TauFrontend
|
|
|
|
|
2019-05-14 17:26:12 +02:00
|
|
|
App for read Tramontana feeds.
|
2019-05-06 09:37:34 +02:00
|
|
|
|
|
|
|
## Development server
|
|
|
|
|
|
|
|
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
|
|
|
|
|
|
|
|
## Build
|
|
|
|
|
|
|
|
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `-prod` flag for a production build.
|
|
|
|
|
2019-05-14 17:26:12 +02:00
|
|
|
## Create Nginx Proxy for CORS in Omeka
|
2019-05-06 09:37:34 +02:00
|
|
|
|
2019-05-14 17:26:12 +02:00
|
|
|
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Expose-Headers
|
2019-05-06 09:37:34 +02:00
|
|
|
|
2019-05-14 17:26:12 +02:00
|
|
|
```javascript
|
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
server_name oralitat;
|
2019-05-06 09:37:34 +02:00
|
|
|
|
2019-05-14 17:26:12 +02:00
|
|
|
access_log /var/log/nginx/omekaApiProxy.access.log;
|
2019-05-06 09:37:34 +02:00
|
|
|
|
2019-05-14 17:26:12 +02:00
|
|
|
location / {
|
|
|
|
add_header 'Access-Control-Allow-Origin' '*';
|
|
|
|
add_header 'Access-Control-Expose-Headers' 'Omeka-Total-Results,Link';
|
|
|
|
proxy_pass http://oralitatdegasconha.net/culturaviva/;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|