Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
coopdevs-provisioning
Manage
Activity
Members
Plan
External wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
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
Github Mirror
coopdevs
coopdevs-provisioning
Commits
394c190c
Commit
394c190c
authored
7 years ago
by
Enrico Stano
Browse files
Options
Downloads
Patches
Plain Diff
Add minimal conf for discourse
parent
8a10d1cc
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
coopdevs.yml
+1
-0
1 addition, 0 deletions
coopdevs.yml
roles/discourse/tasks/main.yml
+12
-0
12 additions, 0 deletions
roles/discourse/tasks/main.yml
roles/discourse/templates/discourse_nginx.conf.j2
+12
-0
12 additions, 0 deletions
roles/discourse/templates/discourse_nginx.conf.j2
with
25 additions
and
0 deletions
coopdevs.yml
+
1
−
0
View file @
394c190c
...
...
@@ -43,3 +43,4 @@
-
limesurvey_dir
:
"
{{
limesurvey_base_dir
}}/limesurvey"
-
limesurvey_user
:
limesurvey
-
limesurvey_group
:
limesurvey
-
role
:
discourse
This diff is collapsed.
Click to expand it.
roles/discourse/tasks/main.yml
0 → 100644
+
12
−
0
View file @
394c190c
---
-
name
:
Create Nginx configuration
template
:
src
:
discourse_nginx.conf.j2
dest
:
/etc/nginx/sites-available/discourse.conf
-
name
:
Enable Nginx configuration
file
:
src
:
/etc/nginx/sites-available/discourse.conf
dest
:
/etc/nginx/sites-enabled/discourse.conf
state
:
link
notify
:
restart webserver
This diff is collapsed.
Click to expand it.
roles/discourse/templates/discourse_nginx.conf.j2
0 → 100644
+
12
−
0
View file @
394c190c
server {
listen 80;
server_name {{ discourse_server_name }};
location / {
proxy_pass http://unix:/var/discourse/shared/standalone/nginx.http.sock:;
proxy_set_header Host $http_host;
proxy_http_version 1.1;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
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