start OSM login
This commit is contained in:
parent
c6d7db0079
commit
5b30c4a724
|
@ -278,6 +278,16 @@ config :mobilizon, :external_resource_providers, %{
|
|||
"https://docs.google.com/spreadsheets/" => :google_spreadsheets
|
||||
}
|
||||
|
||||
config :ueberauth, Ueberauth,
|
||||
providers: [
|
||||
OpenStreetMap: {Ueberauth.Strategy.OpenStreetMap, []}
|
||||
]
|
||||
|
||||
config :ueberauth, Ueberauth.Strategy.OpenStreetMap.OAuth,
|
||||
consumer_key: System.get_env("OpenStreetMap_CONSUMER_KEY"),
|
||||
consumer_secret: System.get_env("OpenStreetMap_CONSUMER_SECRET")
|
||||
|
||||
|
||||
# Import environment specific config. This must remain at the bottom
|
||||
# of this file so it overrides the configuration defined above.
|
||||
import_config "#{Mix.env()}.exs"
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
<div class="columns">
|
||||
<div class="column is-narrow">
|
||||
<figure
|
||||
v-if="participation.event && participation.event.picture"
|
||||
class="image is-16by9"
|
||||
:style="`background-image: url('${
|
||||
participation.event.picture
|
||||
|
|
2
mix.exs
2
mix.exs
|
@ -131,6 +131,8 @@ defmodule Mobilizon.Mixfile do
|
|||
git: "https://github.com/tcitworld/ueberauth_keycloak.git", branch: "upgrade-deps"},
|
||||
{:ueberauth_gitlab_strategy,
|
||||
git: "https://github.com/tcitworld/ueberauth_gitlab.git", branch: "upgrade-deps"},
|
||||
{:ueberauth_openstreetmap_strategy,
|
||||
git: "https://forge.chapril.org/tykayn/ueberauth_openstreetmap", branch: "master"},
|
||||
{:ecto_shortuuid, "~> 0.1"},
|
||||
{:tesla, "~> 1.4.0"},
|
||||
{:sitemapper, "~> 0.5.0"},
|
||||
|
|
|
@ -0,0 +1,50 @@
|
|||
|
||||
server {
|
||||
|
||||
server_name mobilizon.local;
|
||||
add_header Strict-Transport-Security "max-age=31536000";
|
||||
gzip on;
|
||||
gzip_disable "msie6";
|
||||
gzip_vary on;
|
||||
gzip_proxied any;
|
||||
gzip_comp_level 6;
|
||||
gzip_buffers 16 8k;
|
||||
gzip_http_version 1.1;
|
||||
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript application/activity+json application/atom+xml;
|
||||
|
||||
# the nginx default is 1m, not enough for large media uploads
|
||||
client_max_body_size 16m;
|
||||
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
|
||||
location / {
|
||||
proxy_pass http://localhost:4000;
|
||||
}
|
||||
|
||||
location ~ ^/(js|css) {
|
||||
root /var/www/html/mobilizon/live/priv/static;
|
||||
etag off;
|
||||
access_log off;
|
||||
add_header Cache-Control "public, max-age=31536000, immutable";
|
||||
}
|
||||
|
||||
location ~ ^/(media|proxy) {
|
||||
etag off;
|
||||
access_log off;
|
||||
add_header Cache-Control "public, max-age=31536000, immutable";
|
||||
proxy_pass http://localhost:4000;
|
||||
}
|
||||
|
||||
error_page 500 501 502 503 504 @error;
|
||||
location @error {
|
||||
root /var/www/html/mobilizon/live/priv/errors;
|
||||
try_files /error.html 502;
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue