-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from ijdigital/dev
Dev
- Loading branch information
Showing
107 changed files
with
15,001 additions
and
3,380 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DB_HOST=host.docker.internal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,14 @@ | ||
DB_HOST=localhost | ||
DB_HOST=localhost #host.docker.internal | ||
DB_USERNAME=sfscon | ||
DB_PASSWORD=sfscon | ||
DB_NAME=sfscon | ||
DB_PORT=5432 | ||
|
||
PRETIX_TOKEN=__PLACE_YOUR_PRETIX_TOKEN__ | ||
PRETIX_CHECKLIST_ID=__PLACE_CHECKLIST_ID__ | ||
PRETIX_EVENT_ID=__PLACE_EVENT_ID__ | ||
PRETIX_ORGANIZER_ID=noi-digital | ||
|
||
JWT_SECRET_KEY=__SET_ANYTHING_FOR_ENCODING_JWT__ | ||
|
||
XML_URL="https://www.sfscon.it/?calendar=2023&format=xml" | ||
XML_URL="https://www.sfscon.it/?calendar=2024&format=xml" | ||
|
||
REDIS_SERVER=localhost | ||
REDIS_SERVER=redis | ||
|
||
ADMIN_USERNAME=__ADMIN_USERNAME__ | ||
ADMIN_PASSWORD=__ADMIN_PLAINTEXT_PASSWORD__ | ||
LANE_USERNAME_PREFIX=__ADMIN_USERNAME__ | ||
ADMIN_USERNAME=admin | ||
ADMIN_PASSWORD=123 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
version = 1 | ||
SPDX-PackageName = "OpenCON" | ||
SPDX-PackageSupplier = "DigitalCUBE <info@digitalcube.rs>" | ||
SPDX-PackageDownloadLocation = "https://m.opencon.dev/" | ||
|
||
[[annotations]] | ||
path = ["src/scripts/update-conf.py", "aws.credentials.example",".env.docker.example", "start.sh", "src/tests/**", "src/shared/**", "config/**", "REUSE.toml", "static/**", ".gitignore", "**.sample", ".env.sample", "docker-compose.yaml", "src/**.yaml", "src/**.xml", "src/docker/**", "README.md", "requirements.txt", "src/pyproject.toml", "src/tests/assets/fake_attendees.json", "src/tests/pytest.ini", "src/migrations/models/**"] | ||
precedence = "aggregate" | ||
SPDX-FileCopyrightText = "2023 DigitalCUBE <info@digitalcube.rs>" | ||
SPDX-License-Identifier = "GPL-3.0-or-later" | ||
|
||
[[annotations]] | ||
path = [".github/**", "infrastructure/**", ".gitignore", ".env.example", "calls.http"] | ||
precedence = "aggregate" | ||
SPDX-FileCopyrightText = "(c) NOI Techpark <digital@noi.bz.it>" | ||
SPDX-License-Identifier = "CC0-1.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[default] | ||
aws_access_key_id=__KEY_ID__ | ||
aws_secret_access_key=__ACCESS_KEY__ | ||
region=eu-central-1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
|
||
upstream upstream_conferences { ip_hash; server conferences:8000 max_fails=3 fail_timeout=300s; } | ||
|
||
|
||
server { | ||
root /web/admin; | ||
|
||
listen 80 default; | ||
server_name _; | ||
|
||
client_max_body_size 20M; | ||
|
||
location / { | ||
index index.html; | ||
try_files $uri $uri/ /index.html; | ||
} | ||
|
||
location /api { | ||
proxy_pass http://upstream_conferences; | ||
proxy_redirect off; | ||
proxy_set_header Host $host; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_set_header X-Forwarded-For $remote_addr; | ||
|
||
proxy_http_version 1.1; | ||
proxy_set_header Upgrade $http_upgrade; | ||
proxy_set_header Connection "Upgrade"; | ||
proxy_read_timeout 3600s; | ||
} | ||
|
||
|
||
proxy_buffering off; | ||
|
||
rewrite ^/api/(.*)$ /api/$1 break; | ||
rewrite ^/(.*)$ /$1 break; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,69 +1,41 @@ | ||
|
||
upstream oneservices_v2 { ip_hash; server 127.0.0.1:8000 max_fails=3 fail_timeout=300s; } | ||
upstream upstream_conferences { ip_hash; server conferences:8000 max_fails=3 fail_timeout=300s; } | ||
|
||
|
||
server { | ||
root /home/digital/app/frontend; | ||
root /web/admin; | ||
|
||
server_name webadmin.app.sfscon.testingmachine.eu app.sfscon.it; | ||
|
||
client_max_body_size 20M; | ||
|
||
location / { | ||
index index.html; | ||
try_files $uri $uri/ /index.html; | ||
} | ||
|
||
location /static { | ||
root /home/digital/app/impresaone; | ||
} | ||
|
||
location /pretix { | ||
proxy_pass http://apilogger; proxy_redirect off; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $remote_addr; | ||
|
||
proxy_http_version 1.1; | ||
proxy_set_header Upgrade $http_upgrade; | ||
proxy_set_header Connection "Upgrade"; | ||
proxy_read_timeout 3600s; | ||
|
||
} | ||
|
||
location /api/v3 { | ||
proxy_pass http://oneservices_v2; proxy_redirect off; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $remote_addr; | ||
|
||
proxy_http_version 1.1; | ||
proxy_set_header Upgrade $http_upgrade; | ||
proxy_set_header Connection "Upgrade"; | ||
proxy_read_timeout 3600s; | ||
location /static { | ||
root /home/digital/app/impresaone; | ||
} | ||
|
||
location /api { | ||
proxy_pass http://oneservices_v2; proxy_redirect off; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $remote_addr; | ||
location /api { | ||
proxy_pass http://upstream_conferences; | ||
proxy_redirect off; | ||
proxy_set_header Host $host; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_set_header X-Forwarded-For $remote_addr; | ||
|
||
proxy_http_version 1.1; | ||
proxy_set_header Upgrade $http_upgrade; | ||
proxy_set_header Connection "Upgrade"; | ||
proxy_read_timeout 3600s; | ||
} | ||
|
||
location /qr-codes { | ||
root /home/digital/app; | ||
index index.html; | ||
} | ||
|
||
proxy_buffering off; | ||
|
||
# for sfscon mobile app forgot password | ||
# rewrite ^/forgot-password(.*)$ sfscon://reset-password$1 permanent; | ||
rewrite ^/password-redirect(.*)$ sfscon://reset-password$1 permanent; | ||
# rewrite ^/password-redirect-expo-go(.*)$ sfscon://reset-password$1 permanent; | ||
proxy_buffering off; | ||
|
||
rewrite ^/api/v3/(.*)$ /api/v3/$1 break; | ||
rewrite ^/api/(.*)$ /api/$1 break; | ||
|
||
rewrite ^/pretix/(.*)$ /pretix/$1 break; | ||
rewrite ^/qr-codes(.*)$ /qr-codes$1 break; | ||
rewrite ^/(.*)$ /$1 break; | ||
|
||
listen 80; | ||
listen 80; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,37 @@ | ||
upstream oneservices { ip_hash; server 127.0.0.1:8080 max_fails=3 fail_timeout=300s; } | ||
upstream apilogger { ip_hash; server 127.0.0.1:8888 max_fails=3 fail_timeout=300s; } | ||
upstream ups1 { ip_hash; server localhost:8001 max_fails=3 fail_timeout=600s; } | ||
|
||
map $http_upgrade $connection_upgrade { | ||
default upgrade; | ||
'' close; | ||
} | ||
|
||
server { | ||
listen 80 default; | ||
root /home/digital/app/frontend/dist; | ||
|
||
server_name stage.opencon.dev; | ||
|
||
client_max_body_size 20M; | ||
|
||
location /static { | ||
root /home/digital/app/impresaone; | ||
} | ||
|
||
location / { | ||
index index.html; | ||
try_files $uri $uri/ /index.html; | ||
} | ||
|
||
location /pretix { | ||
proxy_pass http://apilogger; proxy_redirect off; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $remote_addr; | ||
|
||
proxy_http_version 1.1; | ||
proxy_set_header Upgrade $http_upgrade; | ||
proxy_set_header Connection "Upgrade"; | ||
proxy_read_timeout 3600s; | ||
|
||
} | ||
|
||
location /api/v3 { | ||
proxy_pass http://oneservices; proxy_redirect off; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $remote_addr; | ||
|
||
proxy_http_version 1.1; | ||
proxy_set_header Upgrade $http_upgrade; | ||
proxy_set_header Connection "Upgrade"; | ||
proxy_read_timeout 3600s; | ||
} | ||
|
||
location /qr-codes { | ||
root /home/digital/app; | ||
index index.html; | ||
# try_files $uri $uri/ index.html; | ||
} | ||
|
||
proxy_buffering off; | ||
|
||
# for sfscon mobile app forgot password | ||
# rewrite ^/forgot-password(.*)$ sfscon://reset-password$1 permanent; | ||
rewrite ^/password-redirect(.*)$ sfscon://reset-password$1 permanent; | ||
# rewrite ^/password-redirect-expo-go(.*)$ sfscon://reset-password$1 permanent; | ||
|
||
rewrite ^/api/v3/(.*)$ /api/v3/$1 break; | ||
rewrite ^/pretix/(.*)$ /pretix/$1 break; | ||
rewrite ^/qr-codes(.*)$ /qr-codes$1 break; | ||
rewrite ^/(.*)$ /$1 break; | ||
listen 80; | ||
|
||
index index.html; | ||
|
||
server_name dev.opencon.dev; | ||
|
||
client_max_body_size 100M; | ||
proxy_connect_timeout 600; | ||
proxy_send_timeout 600; | ||
proxy_read_timeout 600; | ||
send_timeout 600; | ||
|
||
location / { | ||
proxy_pass http://ups1; | ||
proxy_redirect off; | ||
proxy_set_header Host $host; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_set_header X-Forwarded-For $remote_addr; | ||
|
||
proxy_http_version 1.1; | ||
proxy_set_header Upgrade $http_upgrade; | ||
proxy_set_header Connection "Upgrade"; | ||
proxy_read_timeout 3600s; | ||
proxy_set_header X-Forwarded-Proto $scheme; | ||
} | ||
|
||
proxy_buffering off; | ||
} | ||
|
Oops, something went wrong.