Skip to content

Commit

Permalink
✨🐞 Improve/rethink/fix Live Preview (#356)
Browse files Browse the repository at this point in the history
Parent issue: sequentech/meta#752
  • Loading branch information
Findeton committed Jun 22, 2024
1 parent bc1cde4 commit 090feed
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions iam/templates/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ def on_celery_setup_logging(**kwargs):
}

STATIC_ROOT = '/home/iam/webstatic'
STATIC_PREVIEW_PATH = '/home/iam/webstatic/preview'
MEDIA_ROOT = '/home/iam/webstatic/media'

ALLOWED_HOSTS = ['*']
Expand Down
1 change: 1 addition & 0 deletions iam/templates/test_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ class CeleryConfig:

STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
STATIC_PREVIEW_PATH = os.path.join(BASE_DIR, 'static', 'preview')

# cors
CORS_ORIGIN_ALLOW_ALL = False
Expand Down
1 change: 1 addition & 0 deletions oneserver/templates/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ http {
default 1;
"~^GET:/elections/api/(authorities|election/(\d+)(|/results|/hash/))" 0;
"~^GET:/elections/public/\d+/\d+.tar" 0;
"~^GET:/iam/api/auth-event/([a-f0-9\-]+)/live-preview" 0;
"~^POST:/elections/api/election/(\d+)/voter/" 0;
"~^GET:/iam/api/(legal/|auth-event/(\d+)/?)" 0;
"~^POST:/iam/api/auth-event/(\d+)/(register|authenticate|resend_auth_code|ping)" 0;
Expand Down

0 comments on commit 090feed

Please sign in to comment.