Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
cicer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
meskio
cicer
Commits
a7457ea5
Unverified
Commit
a7457ea5
authored
3 years ago
by
meskio
Browse files
Options
Downloads
Patches
Plain Diff
Document nginx configuration
parent
cef0b3c9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+21
-0
21 additions, 0 deletions
README.md
with
21 additions
and
0 deletions
README.md
+
21
−
0
View file @
a7457ea5
...
...
@@ -33,6 +33,27 @@ Instead of flags all the params can be passed as env variables. See the names be
./cicer
-h
```
### nginx configuration
The android app requires CORS to be configured in the server:
```
location / {
if ($request_method ~ ^(OPTIONS)$ ) {
add_header Access-Control-Allow-Origin *;
add_header Access-Control-Allow-Methods 'GET, POST, PUT, DELETE, OPTIONS';
add_header Access-Control-Allow-Headers x-authentication;
return 200;
}
add_header Access-Control-Allow-Origin * always;
add_header Access-Control-Allow-Methods 'GET, POST, PUT, DELETE, OPTIONS';
add_header Access-Control-Allow-Headers x-authentication always;
proxy_pass http://localhost:8000;
}
```
## Running it for development
To run Cicer in development mode, build and run the backend:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment